MattesMutualInformationImageToImageMetricv4 - Getting the rotation result


(Omer Bar) #1

Hello everyone,

I have been using ITK for image registration. Currently, I am looking to improve the accuracy the registration, and therefore trying to upgrade to ITKV4.

My current implementation of ITKV3 is using MattesMutualInformationImageToImageMetric and therefore I am trying to use a similar registration type.

I have looked at the code provided as an example ImageRegistration4.cxx.

The translation values returned seem to be very accurate. Unfortunately, I could not figure out a way to retrieve the rotation value.

Looking for help finding that crucial value.

Thanks for your time,
Omer


(Dženan Zukić) #2

That example uses TranslationTransform, so there is no rotation. If you want rotation too, pick one of the rigid transforms from the list, for example Rigid2DTransform. Then you can use GetAngle() method.


(Omer Bar) #3

Thanks a lot for your help, this makes sense.