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
-
Recently, I noticed that the
pixdim
argument from theSpacing
transform is inconsistent with other transforms.For the
pixdim
inSpacing
transform,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_tuple
fn.I'm wondering why
Spacing
transform is designed this way. Will this inconsistency lead to any improper usage?Beta Was this translation helpful? Give feedback.
All reactions