[Insight-users] Strange Problem in DeformableRegistration15.cxx

Luis Ibanez luis.ibanez at kitware.com
Sat May 21 15:41:31 EDT 2011


Hi Harish,

The Example

   Examples/Registration/DeformableRegistration15.cxx

expects 3D images as input.


The image that you are passing:

                      Example/Data/RatLungSlice1.mha

is actually a 2D image.


You may want to use the BrainWeb images instead.

You can download them from:

     http://public.kitware.com/pub/itk/Data/BrainWeb/

or from MIDAS at:

          http://midas.kitware.com/item/view/491



    Luis


-----------------------------------------------------------------------
On Fri, May 13, 2011 at 10:05 PM, Harish M.V. <mvharish14988 at gmail.com> wrote:
> Hi everyone,
>
> I have compiled successfully the file
> Examples/Registration/DeformableRegistration15.cxx
> When I run it on any images - for example Example/Data/RatLungSlice1.mha and
> "2.mha then I get the following problem:
>
> Affine Registration completed
>
> terminate called after throwing an instance of 'itk::ExceptionObject'
>   what():  /usr/local/include/InsightToolkit/Common/itkImageBase.txx:184:
> itk::ERROR: Image(0x2402850): A spacing of 0 is not allowed: Spacing is
> [31.75, 31.75, 0]
> Aborted
>
> I have no idea why this is happening. I have not modified the code in
> anyway. Please help.
>
> Thanks in advance,
> Harish
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list