[Insight-users] Strange Problem in DeformableRegistration15.cxx

Dawood Masslawi masslawi at gmail.com
Sun May 15 17:22:10 EDT 2011


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/20110515/f5119dc1/attachment.htm>


More information about the Insight-users mailing list