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

About affine transformation #691

Closed
taipingqu opened this issue Dec 24, 2018 · 3 comments
Closed

About affine transformation #691

taipingqu opened this issue Dec 24, 2018 · 3 comments

Comments

@taipingqu
Copy link

Dear expert, how do I use ANTs to do affine alignment based on my own template? Could you tell me the command?

@ntustison
Copy link
Member

You can use antsRegistrationSyNQuick.sh. To get the help menu, use

$ antsRegistrationSyNQuick.sh -h 1

For an affine transform, you could do something like

$ antsRegistrationSyNQuick.sh -d 3 -t a -f ${fixedImage} -m ${movingImage} -o ${outputPrefix}

@taipingqu
Copy link
Author

Hi,I use the command you gave above to do affine alignment, how to output affine.txt?

@cookpa
Copy link
Member

cookpa commented Jan 10, 2019

We use the .mat format for affine transforms now. This will be produced by the antsRegistrationSyNQuick.sh.

antsRegistrationSyNQuick.sh -d 3 -t a -f ${fixedImage} -m ${movingImage} -o ${outputPrefix}

antsApplyTransforms -d 3 -r ${fixedImage} -i ${movingImage} -t ${outputPrefix}0GenericAffine.mat

https://github.com/ANTsX/ANTs/wiki/Forward-and-inverse-warps-for-warping-images,-pointsets-and-Jacobians

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