# Elastix: generated output image doesn't align with applied and hardend transform 

**URL:** <https://discourse.slicer.org/t/elastix-generated-output-image-doesnt-align-with-applied-and-hardend-transform/33147>\
**Category:** Support\
**Tags:** registration, elastix\
**Created:** [November 30, 2023, 1:55pm UTC](https://discourse.slicer.org/t/elastix-generated-output-image-doesnt-align-with-applied-and-hardend-transform/33147 "2023-11-30T13:55:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekls](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@ekls](https://discourse.slicer.org/u/ekls)\
**Post date:** [November 30, 2023, 1:55pm UTC](https://discourse.slicer.org/t/elastix-generated-output-image-doesnt-align-with-applied-and-hardend-transform/33147/1 "2023-11-30T13:55:51Z")

</div>

Hi,  
I’m quite new to slicer so maybe there‘s a very simple answer to my problem.

I’m currently using Elastix to registrate brain MRIs.  
The genereated output volume looks perfectly fine but applying the transform to the original image and it’s segmentation it looks completely different from the output volume.

I already looked up the other topics and found out I need to harden the transform, but still, it doesn’t match.

Output volume

 ![output volume](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/4/84bd677c7bf6b91bd013b9948ca75ec36e61ce26.png)

Original data moving-MRI before applying transform

 ![original_mri](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/f/8fc0124b78ce4452fa3d28dc596ffecfd3c8d2ed.png)

Moving-MRI after applying transform and hardening transform

 ![mri_transformed_and_hardend](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/9/29a30e38a1324287daa12fc2d057a4cd3ba729c1.png)

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![ekls](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@ekls](https://discourse.slicer.org/u/ekls)\
**Post date:** [December 6, 2023, 6:07pm UTC](https://discourse.slicer.org/t/elastix-generated-output-image-doesnt-align-with-applied-and-hardend-transform/33147/2 "2023-12-06T18:07:35Z")

</div>

I’m so sorry but I’m still looking for help. Could anyone possibly tell me what I’m doing wrong?

Thank you !
