# Mutual information of projected images

**URL:** <https://discourse.itk.org/t/mutual-information-of-projected-images/673>\
**Category:** Engineering\
**Created:** [February 13, 2018, 12:42pm UTC](https://discourse.itk.org/t/mutual-information-of-projected-images/673 "2018-02-13T12:42:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niek](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@Niek](https://discourse.itk.org/u/Niek)\
**Post date:** [February 13, 2018, 12:42pm UTC](https://discourse.itk.org/t/mutual-information-of-projected-images/673/1 "2018-02-13T12:42:47Z")

</div>

I’m currenty working on a project but I’m stuck.  
I have two images. Both are projected images from a sphere to a square image. One is just a grayscale image of a spherical camera and the other is an intensity image of same lidar points. I want to calculate the mutual information between both projected images and adjust the rotation and translation of the camera in order to maximize those mutual information.  
I’ve found several examples which calculates those transformation parameters, but it was always for a 2D image. [https://itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodAffine](https://itk.org/Wiki/ITK/Examples/Registration/ImageRegistrationMethodAffine)

I need the 3D transformation matrix in order to transform the lidar point cloud so i matches exactly the spherical images.

---

<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:** [February 13, 2018, 1:45pm UTC](https://discourse.itk.org/t/mutual-information-of-projected-images/673/2 "2018-02-13T13:45:47Z")

</div>

You should take a look at this [IJ article](http://insight-journal.org/browse/publication/800), and [this](https://itk.org/Doxygen/html/group__TwoProjectionRegistration.html) ITK remote module.

---

<div class="post-metadata">

**Author:** ![Niek](https://discourse.itk.org/letter_avatar_proxy/v4/letter/n/e95f7d/32.png) [@Niek](https://discourse.itk.org/u/Niek)\
**Post date:** [February 14, 2018, 9:49am UTC](https://discourse.itk.org/t/mutual-information-of-projected-images/673/3 "2018-02-14T09:49:43Z")

</div>

Thanks for the reply. If I understand this article, it uses as a fixed image 2D images and as moving image a 3D image. Is there a way to only use the projection of the images, so for a fixed and moving image a 2D image. So a transformation matrix can be determined to rotate the 3D cloud and get a new projection.

---

<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:** [February 14, 2018, 1:56pm UTC](https://discourse.itk.org/t/mutual-information-of-projected-images/673/4 "2018-02-14T13:56:07Z")

</div>

What you consider moving and what fixed is only a convention. The inverse matrix gives you the other convention.

Since 2D projection can’t be turned into a 3D image, the 3D image must be turned into a 2D projection to evaluate registration metric. That is what must happen, so it is only a matter of where that is happening.

But if you don’t have access to a 3D point cloud, and only have access to its 2D projection, then you might have to have a non-standard setup.
