Hi,

I am glad to find you guys release a deformable registration module, thanks.
I tried it with two SPGR T1 images of two subjects, but the mainapp crashed
when executing  registration->Update(); in QmitkDemonsRegistrationControls
::CalculateTransformation() member function. which may need a try catch
block
to catch an exception and return.
try{
  registration->Update();
   }
catch(...)
{
  QMessageBox::information( NULL, "Registration exception", "may be memory
allocation exception",
              QMessageBox::Ok );
  return;
}

if without try/catch block, mainapp will print:
MITK MainApp caught an exception:
c:\toolkit\insight\code\common\itkImportImageContainer.txx:188:
Failed to allocate memory for image.

Fucang
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to