[Insight-users] Strange Problem in DeformableRegistration15.cxx

Harish M.V. mvharish14988 at gmail.com
Mon May 16 10:04:52 EDT 2011


Hi Dawood,

Thanks!

Regards,
Harish

On Sun, May 15, 2011 at 5:22 PM, Dawood Masslawi <masslawi at gmail.com>wrote:

> Hi Harish,
>
> Well, the error says that your image spacing in z direction is 0 which is
> not allowed. Since
>
> you haven't made any changes to the code it's definitely the images you
> provided. Check
>
> with some other application (e.g. ImageJ) to see if the spacing right.
>
> HTH,
>
> Dawood
>
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110516/dddd93ca/attachment.htm>


More information about the Insight-users mailing list