ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.19k stars 380 forks source link

ResampleImage usage #1744

Closed devDonnn closed 4 months ago

devDonnn commented 4 months ago

Hi,

I have an image with dimensions of 256x256x176 and a voxel size of 1x1x1. Is it possible to convert to 256x256x256 and 1x1x1 resolution by using ResampleImage? If not, is there another command line tool to do so? Thanks.

ntustison commented 4 months ago

No, but that functionality is in our ANTsPy extension (ANTsPyNet) through the pad_or_crop_image_to_size function.

cookpa commented 4 months ago

If you have a reference image with the desired dimensions, you can also use antsApplyTransforms with -t Identity

devDonnn commented 4 months ago

Wonderful @cookpa ! That works very well in my case. Thanks a lot!