# Elastix fails to update resampled image and transform

**URL:** <https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909>\
**Category:** Support\
**Created:** [May 23, 2018, 2:26pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909 "2018-05-23T14:26:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [May 23, 2018, 2:26pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/1 "2018-05-23T14:26:53Z")

</div>

I am using a downloaded Slicer 4.9.0-2018-05-04 r27180. Using sample data MRBrainTumor1 and MRBrainTumor2, I try to register them using SlicerElastix extension. I tried a couple of presets (`3D MRI, monomodal (brain)` among them), but that doesn’t seem to matter. After registration is finished:

```
Volume registration is started in working directory: C:/Temp/User/Slicer/Elastix/20180523_093922_751
Register volumes...
Generate output...
Registration is completed

```

Nothing looks changed. If I try to save the scene, the transform and resampled volume are not selected by default, meaning they are empty nodes.

If I go to the temp folder and load the intermediate images (e.g. `result.hdr`), they are correctly resampled. Can anyone confirm this?

---

<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 23, 2018, 5:20pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/2 "2018-05-23T17:20:48Z")

</div>

It works well for me with “generic (all)” preset? Have you tried with that?

---

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [May 23, 2018, 7:08pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/3 "2018-05-23T19:08:24Z")

</div>

`generic (all)` and `generic (rigid)` do work now, but I could have sworn they didn’t work earlier today. `3D MRI, monomodal (brain)` does not work in repeated tests. This applies both to 4.9.0-2018-05-04 r27180 and today’s nightly.

---

<div class="post-metadata">

**Author:** ![dzenanz](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/dzenanz/32/1992_2.png) [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Post date:** [May 23, 2018, 8:18pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/4 "2018-05-23T20:18:46Z")

</div>

@Andinet_Enquobahrie was able to reproduce this on his computer. I submitted an [issue](https://issues.slicer.org/view.php?id=4562).

---

<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 24, 2018, 4:46am UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/5 "2018-05-24T04:46:06Z")

</div>

Issue fixed (input file format in the parameter file was set incorrect), should work in tomorrow’s nightly build.

---

<div class="post-metadata">

**Author:** ![Andinet\_Enquobahrie](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/andinet_enquobahrie/32/75_2.png) [@Andinet\_Enquobahrie](https://discourse.slicer.org/u/Andinet_Enquobahrie)\
**Post date:** [May 24, 2018, 3:15pm UTC](https://discourse.slicer.org/t/elastix-fails-to-update-resampled-image-and-transform/2909/6 "2018-05-24T15:15:32Z")

</div>

I tested it. it looks good. Thanks for fixing it. -Andinet
