-
|
I want to crop a nifti image from original size to a given size in the middle of the volume using CenterSpatialCropd transform and save it using SaveImaged. Here I apply the transforms and save. It seems like the volume has been correctly cropped from the center as I want, but the borders look strange and "stretched out". What can I do to fix it so that it look like this: Version: Code: Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I think you can set |
Beta Was this translation helpful? Give feedback.
-
|
It worked @wyli :) Thank you! |
Beta Was this translation helpful? Give feedback.



I think you can set
resample=Falsein SaveImaged