[Insight-users] Multiresolution ITK Guide example fails on VS2005
Luis Ibanez
luis.ibanez at kitware.com
Thu Dec 22 09:43:10 EST 2005
Hi Axel,
Thanks for pointing this out.
The example that you are using requires three arguments
in the command line.
You are probably setting only two, and due to a bug in
the example, the program is attempting to use the third
argument, and crashes in the process.
We just committed a fix in the CVS repository.
Please run the program as:
MultiResImageRegistration1 fixedImage movingImage outputImage
you can also add a forth and fifth arguments in order to
get the checkerboard combination of the fixed and moving
images before and after the registration.
Thanks
Luis
---------------------------
Axel Martinez Möller wrote:
>
> Hi all,
>
> I was wanting to try the MultiResImageRegistration1 example. It compiled
> fine with VS2005, but when I executed it using the images indicated in the
> example, it crashed with the error:
>
> ---
> Debug Assertion Failed!
> Program: F:\ITK\Register\Debug\Register.exe
> File: C:\Program Files\Microsoft Visual Studio 8\VC\include\vector
> Line: 756
>
> Expression: vector subscript out of range
> ---
>
> I do not attach the code as it is EXACTLY the one from the example. I am
> running it in Debug mode (the same way I compiled ITK), and other examples
> worked fine.
>
> Debugging, I localized the problem at line 208 from
> itkMultiResolutionImageRegistrationMethod.txx:
> m_FixedImageRegionPyramid[ level ].SetSize( size );
>
> Thank you in advance for any hint,
>
> axel
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list