# Alpha-Mutual Information for multimodal images with different number of feature channels

**URL:** <https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272>\
**Category:** Algorithms\
**Created:** [September 27, 2019, 10:10am UTC](https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272 "2019-09-27T10:10:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![take5v](https://discourse.itk.org/user_avatar/discourse.itk.org/take5v/32/548_2.png) [@take5v](https://discourse.itk.org/u/take5v)\
**Post date:** [September 27, 2019, 10:10am UTC](https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272/1 "2019-09-27T10:10:51Z")

</div>

Hi,

There have been some studies done on high dimensional image registration using \alpha-MI (Staring _et al_, 2009). The implementation of alpha-Mutual Information is available in elastix: [http://elastix.isi.uu.nl/doxygen/classitk\_1\_1KNNGraphAlphaMutualInformationImageToImageMetric.html](http://elastix.isi.uu.nl/doxygen/classitk_1_1KNNGraphAlphaMutualInformationImageToImageMetric.html). However, is it possible to employ \alpha-MI to register multimodal images which have a different number of feature components? Is it the limitation of \alpha-MI which requires images to have the same number of channels? Can a new metric be developed for such case?

Best regards,  
Stas

---

<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:** [September 27, 2019, 2:36pm UTC](https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272/2 "2019-09-27T14:36:32Z")

</div>

@mstaring and @Niels_Dekker can probably respond the best.

---

<div class="post-metadata">

**Author:** ![mstaring](https://discourse.itk.org/user_avatar/discourse.itk.org/mstaring/32/96_2.png) [@mstaring](https://discourse.itk.org/u/mstaring)\
**Post date:** [October 1, 2019, 1:25pm UTC](https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272/3 "2019-10-01T13:25:07Z")

</div>

Dear Stats,

I had to check the equations in the paper, see [http://elastix.isi.uu.nl/marius/publications/2009\_j\_TMIb.php](http://elastix.isi.uu.nl/marius/publications/2009_j_TMIb.php)

It seems it is not needed at all that the number of features are the same for the two images. The joint entropy is computed from the simple concatenation of the two feature vectors which therefore do not need to be of the same size. But please check the equations in some detail.

Did you try elastix with differently sized feature vectors? Did you run into a problem? The class elastix\Components\Metrics\KNNGraphAlphaMutualInformation\itkKNNGraphAlphaMutualInformationImageToImageMetric.h seems quite general, just scrolling through it.

Best, Marius

---

<div class="post-metadata">

**Author:** ![take5v](https://discourse.itk.org/user_avatar/discourse.itk.org/take5v/32/548_2.png) [@take5v](https://discourse.itk.org/u/take5v)\
**Post date:** [October 1, 2019, 3:34pm UTC](https://discourse.itk.org/t/alpha-mutual-information-for-multimodal-images-with-different-number-of-feature-channels/2272/4 "2019-10-01T15:34:40Z")

</div>

Dear Marius,

It looks promising! I will check the equations and I’ll try Elastix. Thank you a lot for the clarification.

Currently, I’m happy to use SimpleITK which allows me to track the cost function and gives me direct access to image data, and which is apparently lacking in a pythonic wrapper of Elastix.

Best regards,  
Stas
