-
Notifications
You must be signed in to change notification settings - Fork 23
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
Inverse transform #285
Comments
This notebook should be helpful: |
Thank you. I think that resolved my problem. |
You suggestion worked for the bspline (deform registration), but it does not work for rigid transform alone.
Everything works for the deform registration with the same code. This is my initial_transform_parameter_file_name file:
|
And this is detailed log:
|
Any updates on this? |
According to the manual, I think we also need to set the metric to [DisplacementMagnitudePenalty ] right? This step did not show in the notebook. |
I do not see either of |
What I meant is to change the Metric in the parameter files that are used to do registration. Based on my understanding, if you used "AdvancedMattesMutualInformation" as Metric to run elastix registration, you can inverse the transform by 1) change AdcancedMattesMutualInformation to DisplacementMagnitudePenalty, 2) Use the transformation file that generated by "real" registration as initial transform 3) use the original fixed image set both as fixed and moving, 4) redo registration. The output transform files should be the inverse transform. "The DisplacementMagnitudePenalty is a cost function that penalises ||Tµ(x) − x||2. You can use this to invert transforms, by setting the transform to be inverted as an initial transform (using -t0), setting (HowToCombineTransforms "Compose"), and running elastix with this metric, using the original fixed image set both as fixed (-f) and moving (-m) image." Can anyone correct me if I make it wrong? |
For the rigid transform, calling
Obtaining the inverse of the transformation is generally independent of the similarity metric used in registration. |
Can you please add an example of this suggestion in a notebook? |
Hi
Is there any function to inverse the registration?
For example, getting the original moving coordinates associated with the points in the fixed image, after affine and deform transforms used (the transform parameter file is available as the registration was complete) .
Thank you!
The text was updated successfully, but these errors were encountered: