# Shifting Segmentation image or 2D Image

**URL:** <https://discourse.slicer.org/t/shifting-segmentation-image-or-2d-image/19900>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [September 28, 2021, 6:58pm UTC](https://discourse.slicer.org/t/shifting-segmentation-image-or-2d-image/19900 "2021-09-28T18:58:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)\
**Post date:** [September 28, 2021, 6:58pm UTC](https://discourse.slicer.org/t/shifting-segmentation-image-or-2d-image/19900/1 "2021-09-28T18:58:30Z")

</div>

Hello, Friends.

I am dealing with a very peculiar situation. A segmentation was made over an image, but probably, in a cropped version of the image. Now, naturally, when I load the segmentation and the non-cropped image, I get this shift.  
The segmentation is correct and precise, however it is shifted.

Is there any way to re align that by hand that I am missing?

I tried changing 2D grey level image origin, but no success.  
Down here, you can find a shot on how it looks.

 ![Screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/2/8237edc8df4bc6921c3de5e6d58457c7e257ff74.jpeg)

Thanks.

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [September 28, 2021, 11:54pm UTC](https://discourse.slicer.org/t/shifting-segmentation-image-or-2d-image/19900/2 "2021-09-28T23:54:21Z")

</div>

I would recommend the Fiducial Registration module. Choose a small set of corresponding points on the image and the segmentation, use the Fiducial Registration module to find the transform which aligns those point sets, and apply that transform to either the segmentation or the image (whichever landmarks you put as the “Moving” landmarks).

---

<div class="post-metadata">

**Author:** ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)\
**Post date:** [September 29, 2021, 12:25pm UTC](https://discourse.slicer.org/t/shifting-segmentation-image-or-2d-image/19900/3 "2021-09-29T12:25:44Z")

</div>

All right. Sounds Good. I’ll try that. Thanks
