Inconsistent behavior of pixdim in Spacing
#4807
ChenglongWang
started this conversation in
General
Replies: 1 comment 2 replies
-
|
thanks, I'll create a feature request from this, defaulting to the isotropic resolutions instead of all 1.0 values, though I'm not sure which one is better... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Recently, I noticed that the
pixdimargument from theSpacingtransform is inconsistent with other transforms.For the
pixdiminSpacingtransform,if providing a single number, will use it for the first dimension. items of the pixdim sequence map to the spatial dimensions of input image. However, for the most of other transforms, such asResize,SpatialPad, andBorderPad, single number argment will be automatically filled to the image size by usingfall_back_tuplefn.I'm wondering why
Spacingtransform is designed this way. Will this inconsistency lead to any improper usage?Beta Was this translation helpful? Give feedback.
All reactions