# Elastix registration error

**URL:** <https://discourse.slicer.org/t/elastix-registration-error/17335>\
**Category:** Support\
**Tags:** registration, elastix\
**Created:** [April 26, 2021, 4:05pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335 "2021-04-26T16:05:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bence\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bence_horvath/32/4029_2.png) [@Bence\_Horvath](https://discourse.slicer.org/u/Bence_Horvath)\
**Post date:** [April 26, 2021, 4:05pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335/1 "2021-04-26T16:05:47Z")

</div>

Hi,  
I want to registrate preoperative CT with postoperative CT , but Elastix always give me this error, when try to generate output:

Failed to load output transform from C:/Users/HORVIR~1/AppData/Local/Temp/Slicer/Elastix/20210426\_161835\_807\result-resample\deformationField.mhd  
Error: type object ‘MRMLCorePython.vtkMRMLTransformNode’ has no attribute ‘GetMovingNodeReferenceRole’

How can I solve this problem?

Best regards!  
Bence

---

<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 26, 2021, 4:14pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335/2 "2021-04-26T16:14:44Z")

</div>

Szia Bence,

Which Slicer version do you use? If not the latest preview then please install that and try again (you seem to use Windows so Elastix should be fine for that - it has issues on Mac for several weeks now).

---

<div class="post-metadata">

**Author:** ![Bence\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bence_horvath/32/4029_2.png) [@Bence\_Horvath](https://discourse.slicer.org/u/Bence_Horvath)\
**Post date:** [April 26, 2021, 4:23pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335/3 "2021-04-26T16:23:06Z")

</div>

Hi Csaba,

My Slicer version is 4.10.1, I uninstall and reinstall Elastix, but the problem is remain.  
So maybe I schould try Slicer version 4.11. ?

---

<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 26, 2021, 4:25pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335/4 "2021-04-26T16:25:31Z")

</div>

4.10.1 is two and a half years old and we made a lot of improvements and fixes since then. I suggest using at least the latest stable, which is [4.11.20210226](https://download.slicer.org/bitstream/1444239). We do not fix bugs in old versions, so in any case if something is broken then we will only fix it if it persists in the latest version. Thanks!

---

<div class="post-metadata">

**Author:** ![Bence\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/bence_horvath/32/4029_2.png) [@Bence\_Horvath](https://discourse.slicer.org/u/Bence_Horvath)\
**Post date:** [April 26, 2021, 4:58pm UTC](https://discourse.slicer.org/t/elastix-registration-error/17335/5 "2021-04-26T16:58:21Z")

</div>

Okey, thank you very much! 🙂
