Hi Luis,<br><br>Yes, I realized that after Dawood&#39;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">&lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;</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. &lt;<a href="mailto:mvharish14988@gmail.com">mvharish14988@gmail.com</a>&gt; wrote:<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; I have compiled successfully the file<br>
&gt; Examples/Registration/DeformableRegistration15.cxx<br>
&gt; When I run it on any images - for example Example/Data/RatLungSlice1.mha and<br>
&gt; &quot;2.mha then I get the following problem:<br>
&gt;<br>
&gt; Affine Registration completed<br>
&gt;<br>
&gt; terminate called after throwing an instance of &#39;itk::ExceptionObject&#39;<br>
&gt;   what():  /usr/local/include/InsightToolkit/Common/itkImageBase.txx:184:<br>
&gt; itk::ERROR: Image(0x2402850): A spacing of 0 is not allowed: Spacing is<br>
&gt; [31.75, 31.75, 0]<br>
&gt; Aborted<br>
&gt;<br>
&gt; I have no idea why this is happening. I have not modified the code in<br>
&gt; anyway. Please help.<br>
&gt;<br>
&gt; Thanks in advance,<br>
&gt; Harish<br>
&gt;<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>