Hi Dawood,<br><br>Thanks! <br><br>Regards,<br>Harish<br><br><div class="gmail_quote">On Sun, May 15, 2011 at 5:22 PM, Dawood Masslawi <span dir="ltr"><<a href="mailto:davoud_zzz@yahoo.com">davoud_zzz@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">
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><font color="#888888"><div>Dawood</div></font><div><div></div><div class="h5"><div><br></div><div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div>
<div><br></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div>
<div><br></div><div><br></div><div><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></div></div></td></tr></tbody></table></blockquote></div><br>