Resample in one dimension only? #2422
Unanswered
scottassen
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @scottassen , Thanks for your feature request, yes, we may consider to support Thanks. |
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
-
Is there a way to resample an image in one pixdim/dimension only?
For example, in the spleen segmentation dataset, the original image shapes range from (512, 512, 31) to (512, 512, 168), with axial (z) voxel dimensions of 1.5 mm to 8 mm. Is there a way to resample these images to all have the same axial (z) voxel dimensions, while leaving the x and y dimensions the same (so that the final image shapes are still all (512, 512, z))?
The Spacing transform doesn't let you keep original pixdims for some dimensions, and Resize would make all images exactly the same dimensions.
Example desired input:
Example desired output:
Beta Was this translation helpful? Give feedback.
All reactions