Page MenuHomePhabricator

itk exception when performin rigid registration
Closed, ResolvedPublic

Description

  • load "LeberVenoes2" and "LeberVenoes2 - Kopie"
  • Click "Register"

-->
itk::ERROR: GradientDescentOptimizer(0x4228e60): ERROR: Scales must have value greater than epsilon! Scale[9] = 0

Event Timeline

kolbch added a subscriber: kolbch.

this happens on other images as well

@Jan, is this fixed with our latest work on the Registration plugin? If yes, please revert the target milestone to 2015-30 and close the bug.

At the moment, only one registration method works (Rigid3DMutualInformation_LinearInterp). All other methods do not work and throw this error.

To reproduce:

  • load two images (e.g. /E130-Daten/MITK-Tutorial-Demo-Data/Registration/fixed and moving_rigid_centers)
  • open rigid registration view
  • select both
  • choose any method (except Rigid...)
  • load preset
  • register

    --> itk error

At the current master (e6587d) under Linux64 all methods seem to work (do not throw exceptions), only:

  • Versor
  • TranslationMattesMI
  • TranslationMeanSquares

fail with the scales exception.

For the translation transform settings, an affine transform is returned! This causes the mismatch in the parameter/scales dimension:

From QmitkRigidRegistrationSelectorView

[7.854] [Registration.Method] Optimizer Scales: [1, 1, 1]
[7.855] [Registration.Method] Transform parameter: AffineTransform (0x6716fc0)

User hering has pushed new remote branch:

bug-18483-Exceptions-RigidRegistration

[dfb06f]: Merge branch 'bug-18483-Exceptions-RigidRegistration'

Merged commits:

2016-02-11 13:35:30 Jan Hering [c3d69e]
Fix registration translation transform

  • falsely initialized to affine, also adapted identity settin in the AccessFunctor

2016-02-10 16:34:05 Jan Hering [789794]
Improve GUI interaction and element activation

  • changing the preset config will deactivate the 'Register' button to force the user to Load the configuration
  • by this occasion also code cleanup

2016-02-10 16:33:19 Jan Hering [1001ff]
Deactivate Versor Preset

Reopen for fixing Qt4 incompatibilities in QmitkRigidRegistrationView.cpp

[b1ae29]: Merge branch 'bug-18483-RigidRegsitration-Qt4-compatibility'

Merged commits:

2016-02-18 13:48:49 Jan Hering [ea636d]
Use a Qt4-compatible call

Build succeeded on a qt4 system. Closing bug again.