# Segmentation displaced regarding TC image

**URL:** <https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251>\
**Category:** Development\
**Tags:** registration, segmentation\
**Created:** [April 3, 2024, 12:28pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251 "2024-04-03T12:28:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ILB](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@ILB](https://discourse.slicer.org/u/ILB)\
**Post date:** [April 3, 2024, 12:28pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/1 "2024-04-03T12:28:20Z")

</div>

Hi!

Is there a way to correct the fact that when I use TC images for segmentation, if they have several scenes (i.e, with and without contrast), if I use one of them for vessel segmentation and the other one for organ segmentation, since they are not exactly in the same position, the final segmentation appears moved (see image below). Also, this may alter the spacial relationship representation in my final 3D model.  
How can I solve this?  
Thank you!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 3, 2024, 12:33pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/2 "2024-04-03T12:33:24Z")

</div>

This could happen if you are seeing patient motion between series. You could try registration techniques (e.g. this [approach](https://github.com/SlicerRt/SegmentRegistration))

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [April 3, 2024, 12:36pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/3 "2024-04-03T12:36:17Z")

</div>

Indeed, the Segment Registration extension has been created for this exact purpose. You can find it in the Extensions Manager under this name, and instructions on how to use it following the link @pieper provided.

---

<div class="post-metadata">

**Author:** ![ILB](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@ILB](https://discourse.slicer.org/u/ILB)\
**Post date:** [April 4, 2024, 11:47am UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/4 "2024-04-04T11:47:38Z")

</div>

Thank you both! That was really helpful!

---

<div class="post-metadata">

**Author:** ![ILB](https://avatars.discourse-cdn.com/v4/letter/i/e9c0ed/32.png) [@ILB](https://discourse.slicer.org/u/ILB)\
**Post date:** [April 4, 2024, 1:18pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/5 "2024-04-04T13:18:08Z")

</div>

Now I don’t know if my problem is a registration one, because I realized that I segmented from a “zoomed in” image some organs, and other from a “zoomed out” (because of visibility).  
When I see for example de liver in the zoomed out, it is somehow with the scaled size, but not in the correct position. I attach some images so you can compare.

I’m not sure I can register the two TC images, and the module didn’t work for that. Is there a way in which I can manually move the coordinates of the segmentation, or something like that, to make it overlap with the zoomed out image?

Thank you in advance!

Best wishes

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/1/21b4af7296207aa6e181b177bb2c001157d6871f.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/e/8ec46b12dc412ba1d62dea3d6fa17286f30488f4.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 4, 2024, 2:08pm UTC](https://discourse.slicer.org/t/segmentation-displaced-regarding-tc-image/35251/6 "2024-04-04T14:08:11Z")

</div>

It’s unlikely, but possible you are seeing [this issue](https://github.com/Slicer/Slicer/issues/7668). You should try using the latest preview version of Slicer to check.

> [@ILB](#):
>
> manually move the coordinates of the segmentation

Yes, you can use the transforms for that if it’s really what you need.

But also it’s hard for us to know from just the screenshots. What would help is to know if you can replicate this issue on data for which you can share an entire scene. E.g. if you could replicate it on already public data or on anonymized data you can share.
