ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.21k stars 381 forks source link

ResampleImage usage #1744

Closed devDonnn closed 6 months ago

devDonnn commented 6 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 6 months ago

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

cookpa commented 6 months ago

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

devDonnn commented 6 months ago

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