[Insight-users] DeformableRegistration6 error

kingaza at gmail.com kingaza at gmail.com
Sat Oct 30 01:04:05 EDT 2004


hi all,

I try DeformableRegistration6 using images which size is 256*256, but
an exception occures:

itk::ExceptionObject (0108F840)
Location: "Unknown"
File: .\itkLBFGSOptimizer.cxx
LIne: 252
Description: itk::ERROR: LBFGSOpimeizer(00376680): Error occured in optimization

and then i debug deeply, and find in itkLBFGSOptimizer.cxx
parameters.size = 0 while initialPosition.size() =128
this is where the exception is caught.
I had thought it is because of the dicom file format , so I try it
again using png file, and the same appears.
But if I use images which size is 64*64, anything is OK, and the
output is perfect.
please help me!



itkLBFGSOptimizer.cxx
/////////////////////////////////////////////////////////////////////////////////////////////
......
  m_VnlOptimizer->minimize( parameters );

 if ( parameters.size() != initialPosition.size() )
    {
    // set current position to initial position and throw an exception
    this->SetCurrentPosition( initialPosition );
    itkExceptionMacro( << "Error occured in optimization" );
    }
......
/////////////////////////////////////////////////////////////////////////////////////////////


More information about the Insight-users mailing list