Commit 0723ecb
committed
BUG: Recompute Yvv GPU coefficients against actual input spacing
SetSigmaArray() reads spacing from GetOutput()->GetSpacing() at
user-config time, where the output DataObject still carries the
default unit spacing (1.0 in every dimension). The CPU sibling
RecursiveLineYvvGaussianImageFilter recomputes the b-coefficients
and M-matrix in BeforeThreadedGenerateData() using the actual
input spacing.
Add the equivalent recomputation at the entry of GPUGenerateData()
so non-unit-spacing images (e.g. CT with 0.5 mm voxels) produce
correct Gaussian kernels on the GPU path.1 parent c5456be commit 0723ecb
1 file changed
Lines changed: 10 additions & 0 deletions
File tree
- Modules/Filtering/SmoothingRecursiveYvvGaussianFilter/include
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
295 | 305 | | |
296 | 306 | | |
297 | 307 | | |
| |||
0 commit comments