-
Notifications
You must be signed in to change notification settings - Fork 35
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
antsApplyTransforms #340
Comments
see |
Before asking I have tried to follow the instructions and again I have not been able to do it correctly. Could you help me please? Thank you and excuse me for this kind of questions. Best, |
If you type |
Here's what I do: First the registration:
First, note that the resulting object: ImageA_into_ImageB_reg itself CONTAINS ImageA transformed into ImageB already. If you enter the name of this object by itself on R's commandline, you get something like:
In other words, ImageA_into_ImageB_reg$warpedmovout is (in this case) ImageA warped into ImageB. You can check this by doing:
(Similarly ImageA_into_ImageB_reg$warpedfixout is ImageB warped into ImageA) However, these are created using (I believe) linear interpolation. If you want to use a different kind of interpretation, you'd use antsApplyTransforms, and specify a particular type of interpolation. For example:
I believe this is correct... -Tom |
Hi,
I have two images (A.nii, B.nii). After perform SyN registration from A.nii to B.nii, I obtained the C0GenericAffine.mat, C1InverseWarp.nii.gz and the C1Warp.nii.gz files.
Now my goal is to apply the registration fields obtained in registration A.nii ---> B.nii to the A.nii image. For that purpose I am trying to use the antsApplyTransforms using this command:
antsApplyTransforms ('B.nii', 'A.nii', transformlist = "C0GenericAffine.mat", interpolator = 'nearestNeighbor', imagetype = 0, whichtoinvert = FALSE, compose = NA, verbose = FALSE)
and the output is
[1] 1
I am very new using ANTsR tools, can anyone suggest to me the correct command to apply the deformation fields to the A.nii image??
Thanks for your help.
Best regards,
The text was updated successfully, but these errors were encountered: