<div dir="ltr"><div><div><div><div>Hello Ajjwal,<br><br></div>It seams that you are trying to shrink you image by a rational factor (floating point value 0.3), but the itk::ShrinkImageFilter is intendend to shrink by integer factors.<br>
</div>So I guess some rounding to zero is happening in between.<br><br></div>If you need factor like 0.3 you should use probably the Itk::ResampleImageFilter, and make sure to compute the output information (size, spacing, origin and direction) yourself.<br>
<br></div>I hope it helps<br><div class="gmail_extra"><br clear="all"><div><div dir="ltr">Nicolás Gallego-Ortiz<br>Université catholique de Louvain, Belgium<br></div></div>
<br><br><div class="gmail_quote">2014-06-14 15:42 GMT+02:00 UJJWAL aryan <span dir="ltr"><<a href="mailto:meetukme@gmail.com" target="_blank">meetukme@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>Hi,<br><br></div>I am attaching a small snippet of a code I was writing. However on running the code I get the following error :<br><br>terminate called after throwing an instance of 'itk::ExceptionObject'<br>
what(): /usr/local/include/ITK-4.5/itkImageBase.hxx:184:<br>itk::ERROR: Image(0x189eab0): A spacing of 0 is not allowed: Spacing is [0, 0]<br>Aborted (core dumped)<br><br></div>Could someone please point out what am I missing here ?<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><div><div><br>-- <br>Ujjwal<div>IIIT Hyderabad </div><div>Mob - 8142265628</div><div><a href="mailto:ujjwal@research.iiit.ac.in" target="_blank">ujjwal@research.iiit.ac.in</a><br><br><br></div>
</div></div></div></font></span></div>
<br>_____________________________________<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.php" target="_blank">http://www.kitware.com/products/protraining.php</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://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div></div>