[Insight-users] Pointset to image registration

Karthik Krishnan karthik.krishnan at kitware.com
Mon Feb 5 11:50:50 EST 2007


On 2/5/07, tony hakki <tony2007vtk at yahoo.com> wrote:

> I need really urgent help, here is my code about pointset to image
> registration. I comleted ,it seems that everything ok,but when run it i
> gives *break* or *continue* error.
>
>

The reason of
>
> Unhandled exception at 0x7c812a5b in nfinity.exe: Microsoft C++ exception:
> itk::ExceptionObject at memory location 0x0012ea7c..
>


Please enclose  the offending line in a try catch block , so you can catch
the itk exceptions being thrown and print them to std::cerr. Something
like...
  try
    {
    registration->StartRegistration();
    }
  catch( itk::ExceptionObject & err )
    {
    std::cerr << "ExceptionObject caught !" << std::endl;
    std::cerr << err << std::endl;
    return EXIT_FAILURE;
    }

HTH
-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070205/0e36ad2d/attachment.htm


More information about the Insight-users mailing list