# MattesMutualInformationImageToImageMetricv4 - Getting the rotation result

**URL:** https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-getting-the-rotation-result/1793
**Category:** Beginner Questions
**Created:** [April 16, 2019, 3:48pm UTC](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-getting-the-rotation-result/1793 "2019-04-16T15:48:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![OmerB](https://discourse.itk.org/user_avatar/discourse.itk.org/omerb/32/698_2.png) [@OmerB](https://discourse.itk.org/u/OmerB)
#### Post date: [April 16, 2019, 3:48pm UTC](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-getting-the-rotation-result/1793/1 "2019-04-16T15:48:22Z")

</div>

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](https://itk.org/Doxygen/html/Examples_2RegistrationITKv4_2ImageRegistration4_8cxx-example.html).

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

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [April 17, 2019, 2:05pm UTC](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-getting-the-rotation-result/1793/2 "2019-04-17T14:05:27Z")

</div>

That example uses [TranslationTransform](https://itk.org/Doxygen/html/classitk_1_1TranslationTransform.html), so there is no rotation. If you want rotation too, pick one of the rigid transforms from [the list](https://itk.org/Doxygen/html/group__ITKTransform.html), for example [Rigid2DTransform](https://itk.org/Doxygen/html/classitk_1_1Rigid2DTransform.html). Then you can use [GetAngle()](https://itk.org/Doxygen/html/classitk_1_1Rigid2DTransform.html#a4e04d99fc726d233d3122d54406cdef2) method.

---

<div class="post-metadata">

### Author: ![OmerB](https://discourse.itk.org/user_avatar/discourse.itk.org/omerb/32/698_2.png) [@OmerB](https://discourse.itk.org/u/OmerB)
#### Post date: [April 17, 2019, 2:12pm UTC](https://discourse.itk.org/t/mattesmutualinformationimagetoimagemetricv4-getting-the-rotation-result/1793/3 "2019-04-17T14:12:23Z")

</div>

Thanks a lot for your help, this makes sense.
