# Elastix non-rigid transform displaying in the wrong area?

**URL:** <https://discourse.slicer.org/t/elastix-non-rigid-transform-displaying-in-the-wrong-area/17426>\
**Category:** Support\
**Tags:** registration, elastix\
**Created:** [May 3, 2021, 10:40pm UTC](https://discourse.slicer.org/t/elastix-non-rigid-transform-displaying-in-the-wrong-area/17426 "2021-05-03T22:40:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teresa\_Gadda](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/teresa_gadda/32/9663_2.png) [@Teresa\_Gadda](https://discourse.slicer.org/u/Teresa_Gadda)\
**Post date:** [May 3, 2021, 10:40pm UTC](https://discourse.slicer.org/t/elastix-non-rigid-transform-displaying-in-the-wrong-area/17426/1 "2021-05-03T22:40:28Z")

</div>

Hello Slicer team -

I have performed a rigid registration using elastix of two spine images and thought I would try doing a non-rigid registration on the same images to see if it improves my result further. I hardened the rigid registration transforms and then performed a non-rigid registration. The registration completed successfully but when I ask to see the results, the deformed grid does not overlap the registration images. The output volume, however, _does_ appear to be deformed as I expected. So I’m beginning to suspect that the transform just isn’t displaying in the correct location? But I wanted to run it by this group and see if there’s something I’m not thinking of. Let me show you some images.

Here is the fixed image (with the non-rigid transformation grid):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/8/a83c4377cf679ef2b539deb6362f47de37fbdc02.png)

Here is the moving image (note, it’s basically in the same location as the fixed image already because they were registered to each other previously):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/5/15e8b8aff72acc66abb25c7feb6707467728deeb.png)

Here is the output image from elastix (the outputVolumeNode):  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/573ece4e3a8356d618d5ccb2da6cf1cac175d82c.png)

So what I’m wondering is, **why isn’t the visualization of the transform on top of the images that are transformed?**

Let me know if more data would help. I can send the images, elastix parameters, elastix log files/results, etc.

---

<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:** [May 21, 2021, 6:42pm UTC](https://discourse.slicer.org/t/elastix-non-rigid-transform-displaying-in-the-wrong-area/17426/2 "2021-05-21T18:42:45Z")

</div>

Does the transform appear in correct location if you enable Advanced / Force grid output transform option?
