# Elastix registration returns with failure

**URL:** <https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170>\
**Category:** Support\
**Tags:** registration\
**Created:** [April 21, 2017, 3:57pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170 "2017-04-21T15:57:24Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [April 21, 2017, 3:57pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/1 "2017-04-21T15:57:24Z")

</div>

Hi Andras,

This looks promising!

I just tried a general registration and got this:  
`CalledProcessError: Command 'elastix' returned non-zero exit status 1`

Also, I have a question: does one have to `Create new ScriptedModule` in the `Parameter set` button?

@ihnorton I tried uploading the error log but got this message:  
`Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif).`

Best,  
Fernando

---

<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 21, 2017, 3:58pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/2 "2017-04-21T15:58:44Z")

</div>

> [@Elastix registration toolbox is now available in Slicer](https://discourse.slicer.org/t/elastix-registration-toolbox-is-now-available-in-slicer/165/2):
>
> I tried uploading the error log

You can copy paste the relevant part of the log and a link to the full text of the log (on dropbox, onedrive, …)

---

<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 21, 2017, 4:01pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/3 "2017-04-21T16:01:07Z")

</div>

> [@Elastix registration toolbox is now available in Slicer](https://discourse.slicer.org/t/elastix-registration-toolbox-is-now-available-in-slicer/165/2):
>
> Also, I have a question: does one have to Create new ScriptedModule in the Parameter set button?

Good point, the widget is there, but it is not used for anything now. I’ll add saving of node selections into the parameter node ([Save selections in the parameter set node · Issue #1 · lassoan/SlicerElastix · GitHub](https://github.com/lassoan/SlicerElastix/issues/1)).

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [April 21, 2017, 4:16pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/4 "2017-04-21T16:16:43Z")

</div>

I was trying to upload the .log file. [Trying from GMail now]

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [April 21, 2017, 4:20pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/5 "2017-04-21T16:20:56Z")

</div>

I see that it didn’t work. I’ll just send you the file by email.

> [@Elastix registration toolbox is now available in Slicer](https://discourse.slicer.org/t/elastix-registration-toolbox-is-now-available-in-slicer/165/4):
>
> > [@Elastix registration toolbox is now available in Slicer](https://discourse.slicer.org/t/elastix-registration-toolbox-is-now-available-in-slicer/165/2):
> >
> > Also, I have a question: does one have to Create new ScriptedModule in the Parameter set button?
> 
> Good point, the widget is there, but it is not used for anything now. I’ll add saving of node selections into the parameter node ([Save selections in the parameter set node · Issue #1 · lassoan/SlicerElastix · GitHub](https://github.com/lassoan/SlicerElastix/issues/1)).

I confess I have never been sure what a parameter node is. I tried the link [in the wiki](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Modules#Scripted_Modules), but it’s dead.

---

<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 21, 2017, 4:37pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/6 "2017-04-21T16:37:45Z")

</div>

> [@Elastix registration toolbox is now available in Slicer](https://discourse.slicer.org/t/elastix-registration-toolbox-is-now-available-in-slicer/165/6):
>
> I confess I have never been sure what a parameter node is. I tried the link in the wiki, but it’s dead.

I’ve updated the link, the slides are available here:  
[https://www.slicer.org/w/images/7/79/SlicerModulesProgrammingBeyondBasics.pdf](https://www.slicer.org/w/images/7/79/SlicerModulesProgrammingBeyondBasics.pdf)

Parameter node stores your node and parameter selection so that if you save the scene and reload it you can just click on Apply to run the processing again.

Parameter nodes allow you to set up complete processing pipelines using CLI modules (select the output of a CLI as in input of another CLI). You just load the scene, select data set as input, and the pipeline is re-executed automatically and you see the output as soon as the processing is completed. It only works for CLI modules though (and for loadable and scripted modules that has auto-run/auto-update feature implemented).

---

<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 21, 2017, 8:43pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/7 "2017-04-21T20:43:25Z")

</div>

@Fernando used a yesterday’s Slicer version that had still some issues. There should be no problem in the latest nightly version.

---

<div class="post-metadata">

**Author:** ![Fernando](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fernando/32/5640_2.png) [@Fernando](https://discourse.slicer.org/u/Fernando)\
**Post date:** [April 24, 2017, 2:39pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/8 "2017-04-24T14:39:06Z")

</div>

Working fine now.

Is there a way to choose the type of registration (rigid/affine, etc.) instead of having to choose a preset?

---

<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 24, 2017, 3:00pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/9 "2017-04-24T15:00:50Z")

</div>

Type of registration (and many other parameters) are defined by the preset. It could be possible to add some level of preset editing/saving inside the module, but now it’s manual (editing text files; the presets folder can be opened from the Advanced section).

---

<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:** [February 2, 2021, 4:41pm UTC](https://discourse.slicer.org/t/elastix-registration-returns-with-failure/170/10 "2021-02-02T16:41:01Z")

</div>

A post was split to a new topic: [Elastix registration fails](https://discourse.slicer.org/t/elastix-registration-fails/15798)
