<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Harish,<div><br></div><div>Well, the error says that your image spacing in z direction is 0 which is not allowed. Since</div><div><br></div><div>you haven't made any changes to the code it's definitely the images you provided. Check</div><div><br></div><div>with some other application (e.g. ImageJ) to see if the spacing
right.</div><div><br></div><div>HTH,</div><div><br></div><div>Dawood</div><div><br></div><div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><pre>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</pre></span></div></td></tr></table>