Hi Luis,<br><br>Yes, I realized that after Dawood's reply.. <br>Thanks a lot. <br><br>Regards,<br>Harish<br><br><div class="gmail_quote">On Sat, May 21, 2011 at 3:41 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.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;">Hi Harish,<br>
<br>
The Example<br>
<br>
Examples/Registration/DeformableRegistration15.cxx<br>
<br>
expects 3D images as input.<br>
<br>
<br>
The image that you are passing:<br>
<br>
Example/Data/RatLungSlice1.mha<br>
<br>
is actually a 2D image.<br>
<br>
<br>
You may want to use the BrainWeb images instead.<br>
<br>
You can download them from:<br>
<br>
<a href="http://public.kitware.com/pub/itk/Data/BrainWeb/" target="_blank">http://public.kitware.com/pub/itk/Data/BrainWeb/</a><br>
<br>
or from MIDAS at:<br>
<br>
<a href="http://midas.kitware.com/item/view/491" target="_blank">http://midas.kitware.com/item/view/491</a><br>
<br>
<br>
<br>
Luis<br>
<br>
<br>
-----------------------------------------------------------------------<br>
<div><div></div><div class="h5">On Fri, May 13, 2011 at 10:05 PM, Harish M.V. <<a href="mailto:mvharish14988@gmail.com">mvharish14988@gmail.com</a>> wrote:<br>
> Hi everyone,<br>
><br>
> I have compiled successfully the file<br>
> Examples/Registration/DeformableRegistration15.cxx<br>
> When I run it on any images - for example Example/Data/RatLungSlice1.mha and<br>
> "2.mha then I get the following problem:<br>
><br>
> Affine Registration completed<br>
><br>
> terminate called after throwing an instance of 'itk::ExceptionObject'<br>
> what(): /usr/local/include/InsightToolkit/Common/itkImageBase.txx:184:<br>
> itk::ERROR: Image(0x2402850): A spacing of 0 is not allowed: Spacing is<br>
> [31.75, 31.75, 0]<br>
> Aborted<br>
><br>
> I have no idea why this is happening. I have not modified the code in<br>
> anyway. Please help.<br>
><br>
> Thanks in advance,<br>
> Harish<br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</blockquote></div><br>