# Registration of two space closed Images

**URL:** https://discourse.itk.org/t/registration-of-two-space-closed-images/3228
**Category:** Algorithms
**Created:** [June 25, 2020, 8:52pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228 "2020-06-25T20:52:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 25, 2020, 8:52pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/1 "2020-06-25T20:52:58Z")

</div>

Dear All,

Happens that I take the Region of Interest of two images. Those images are space closed. I apply a Registration in Rotation and Translation (Mutual Information) and with the registration the result is worst than without registration.

How I can deal with this? Low learning rate?

I want the same systematic registration for apart ROIs and for a close ones.

Thanks,

Luis Gonçalves

---

<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: [June 26, 2020, 12:45pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/2 "2020-06-26T12:45:29Z")

</div>

> [@Luis\_Carlos\_Carneiro](#):
>
> registration the result is worst than without registration.

Worse how? What are you trying to accomplish?

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 26, 2020, 12:49pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/3 "2020-06-26T12:49:28Z")

</div>

The two images, instead of become more close together, they come more apart.

---

<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: [June 26, 2020, 1:26pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/4 "2020-06-26T13:26:32Z")

</div>

Maybe your applying the resulting transform in the wrong direction? When applying to moving image, use direct transform. When applying to fixed image, use inverse transform.

If this is not the issue, we will need more detailed description and preferably some screenshots showing what you do.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 26, 2020, 1:36pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/5 "2020-06-26T13:36:46Z")

</div>

Sir,

Someone inform me the contrary in the following post. I suppose. Please see.

[https://discourse.itk.org/t/problems-with-registration-fusion/3118/5](https://discourse.itk.org/t/problems-with-registration-fusion/3118/5)

Thanks,

Luis Gonçalves

---

<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: [June 26, 2020, 2:59pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/6 "2020-06-26T14:59:16Z")

</div>

So that is not the issue.

We will need more detailed description and preferably some screenshots showing what you do.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 26, 2020, 3:32pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/7 "2020-06-26T15:32:13Z")

</div>

I have an working example that is working perfectly.

But the others no.

Please, see better the other post. He is saying the contrary from you.

Transform

Dimensions=0.3 in all directions

[0.0068103056, -0.049634278, 0.050176658, 1.9247658, 3.810626, 2.4928436]

PreRegistration Images (ROI)

[https://www.luisgo.pro/down/pre\_regis1.png](https://www.luisgo.pro/down/pre_regis1.png)

[https://www.luisgo.pro/down/pre\_regis2.png](https://www.luisgo.pro/down/pre_regis2.png)

PosRegistration Images (ROI)

[https://www.luisgo.pro/down/pos\_regis1.png](https://www.luisgo.pro/down/pos_regis1.png)

The point in the corner is (0,0,0). If the faces are facing you, to inside the screen is Z, for downwards is X and for the side is Y.

The image with flat nose is the fixed image.

[https://www.luisgo.pro/down/Total\_Image\_Registration.png](https://www.luisgo.pro/down/Total_Image_Registration.png)

In the result registration image the inside has several levels of grey or color that was applied a threshold to attest the good or not good registration.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 26, 2020, 4:15pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/8 "2020-06-26T16:15:40Z")

</div>

I am now exchanging the fixed image with the moving image and changing the signal of the transform. I supposing that you are right and the other post not.

---

<div class="post-metadata">

### Author: ![Luis\_Carlos\_Carneiro](https://discourse.itk.org/user_avatar/discourse.itk.org/luis_carlos_carneiro/32/1486_2.png) [@Luis\_Carlos\_Carneiro](https://discourse.itk.org/u/Luis_Carlos_Carneiro)
#### Post date: [June 30, 2020, 10:11pm UTC](https://discourse.itk.org/t/registration-of-two-space-closed-images/3228/9 "2020-06-30T22:11:17Z")

</div>

Problem solved. Rotation X-\>Y-\>Z and not Z-\>Y-\>X.
