Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResampleImage usage #1744

Closed
devDonnn opened this issue May 13, 2024 · 3 comments
Closed

ResampleImage usage #1744

devDonnn opened this issue May 13, 2024 · 3 comments

Comments

@devDonnn
Copy link

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
Copy link
Member

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

@cookpa
Copy link
Member

cookpa commented May 13, 2024

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

@devDonnn
Copy link
Author

devDonnn commented May 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants