Page MenuHomePhabricator

ext app crashes after registration with DeformableRegistration bundle
Closed, ResolvedPublic

Description

Add two 3D pictures to the Datamanager. Select both and choose in the DeformableRegistration as Transform option: "Symmetric Forces Demons Registration"
Then click on Register.
It seems that the app only crashes for pictures with more than one slice.

Event Timeline

Will work on it during bug squashing.

The Crash happens in
DeformableRegistrationUI\QmitkDemonsRegistrationView.cpp
at line 180

m_ResultDeformationField = mitk::ImportItkImage(deformationField);

as far as I can see no exception is thrown and the application terminates instantly. Tobi suggested this might be due to templating issues.

Debugging shows
registration->GetDeformationField();
to return a Nullpointer, which in turn breaks the ImportItkImage.

We have fixed the crash (it was due to the deformation field not being set at all), but the resulting registration does not seem to be correct.

Daniel, is it possible for you to comment on this problem? I am pretty sure, that it is not due to the fix.
See T3964

[SVN revision 22713]
FIX (#3732): Adding command to assign data to the deformation field

Merging registration bugs into general "Modules" component.