# mirroring Slicer

**URL:** <https://discourse.slicer.org/t/mirroring-slicer/6388>\
**Category:** Support\
**Created:** [April 4, 2019, 2:39am UTC](https://discourse.slicer.org/t/mirroring-slicer/6388 "2019-04-04T02:39:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ely\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ely_b/32/3381_2.png) [@Ely\_B](https://discourse.slicer.org/u/Ely_B)\
**Post date:** [April 4, 2019, 2:39am UTC](https://discourse.slicer.org/t/mirroring-slicer/6388/1 "2019-04-04T02:39:09Z")

</div>

Hi, I have a problem, I have to calculate the matrix that makes the centers of two mirrored images aligned. How should I proceed?

---

<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 4, 2019, 1:14pm UTC](https://discourse.slicer.org/t/mirroring-slicer/6388/2 "2019-04-04T13:14:52Z")

</div>

You’ll have to move the origin in the direction of the mirroring by the size of the image (spacing\*dimensions).

---

<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:** [April 6, 2019, 4:29am UTC](https://discourse.slicer.org/t/mirroring-slicer/6388/3 "2019-04-06T04:29:42Z")

</div>

> [@Ely\_B](#):
>
> I have to calculate the matrix that makes the centers of two mirrored images aligned

If you know the centerpoint then it should be easy: concatenate transforms that shifts center to the origin, apply mirroring, shift it back to the center.

If you don’t know the centerpoint then mark corresponding anatomical points on the two sides and compute the transform using landmark registration (e.g., SlicerIGT extension’s Fiducial registration wizard module).
