# Automatic registration of segmentation

**URL:** https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045
**Category:** Support
**Tags:** registration, segmentation
**Created:** [February 18, 2022, 1:52pm UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045 "2022-02-18T13:52:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Cam\_Arnt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cam_arnt/32/14344_2.png) [@Cam\_Arnt](https://discourse.slicer.org/u/Cam_Arnt)
#### Post date: [February 18, 2022, 1:52pm UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045/1 "2022-02-18T13:52:41Z")

</div>

Hi everyone,

I’ve got a problem with the automatic registration. I will explain you :  
I’ve achieved the segmentation of bones on CT-scan images and catilages on MRI images. I would like to register the segmentation with an automatic way. Currently, I’ve just done it manually, and when I try to achieve the registration, only the images are registered.

If everyone can help me, I would be grateful.  
Have a good day !

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 18, 2022, 4:17pm UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045/2 "2022-02-18T16:17:49Z")

</div>

Registration modules can also compute a transform. You can then [apply the computed transform to the segmentation](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#apply-transform-to-a-node).

---

<div class="post-metadata">

### Author: ![Cam\_Arnt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cam_arnt/32/14344_2.png) [@Cam\_Arnt](https://discourse.slicer.org/u/Cam_Arnt)
#### Post date: [February 22, 2022, 7:39am UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045/3 "2022-02-22T07:39:22Z")

</div>

I’ve done a new linear transform with brain registration module with

- fixed image: scan (where there is the bone segmentation)

- moving image: MRI (where there is the menisci segmentation)  
it created the output image 4 and the linear transform

- I’ve applied the new transform to the menisci segmentation: it worked

but bones are linked to the fixed image but still turned in the wrong way as you can see below, and that I don’t understand.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/5/255909827c7b5bce369951efe195570181dc278a.jpeg)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 22, 2022, 1:48pm UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045/4 "2022-02-22T13:48:35Z")

</div>

The computed transform must be applied to the moving image. You can switch up the fixed and moving image if you want to transform the other image.

---

<div class="post-metadata">

### Author: ![Cam\_Arnt](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cam_arnt/32/14344_2.png) [@Cam\_Arnt](https://discourse.slicer.org/u/Cam_Arnt)
#### Post date: [February 22, 2022, 4:15pm UTC](https://discourse.slicer.org/t/automatic-registration-of-segmentation/22045/5 "2022-02-22T16:15:22Z")

</div>

Thanks for all! My problem was on a registration parameter and not on my segmentation. However, your explication of the transform matrix was very helpful.
