Hui,<br><br>We recently added this check. Looks like we need to add a tolerance to the check.<br><br>I'ved cc'ed Jim Miller. He added the new check.<br><br>Can you point us to the datasets?<br><br>Bill<br><br><div class="gmail_quote">
On Thu, Oct 20, 2011 at 2:31 PM, Hui Tang - TNW <span dir="ltr"><<a href="mailto:H.Tang@tudelft.nl">H.Tang@tudelft.nl</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;">
<div>
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt;">
<p>Dear ITK user,</p>
<p> </p>
<p>I got this error </p>
<p> </p>
<p>terminate called after throwing an instance of 'itk::ExceptionObject'<br>
what(): /home/htang/Programs/ITK4/ITK/Modules/Core/Common/include/itkImageToImageFilter.hxx:253:<br>
itk::ERROR: xxxxxxxxxxxtImageFilter(0x166f080): Inputs do not occupy the same physical space!<br>
InputImage Origin: [0.117188, 12.0703, 104.7], InputImage1 Origin: [0.117188, 12.0703, 104.7]<br>
</p>
<p>when I read one image.</p>
<p> </p>
<p>I did </p>
<p>software1.exe -i input.mhd -o output1.mhd</p>
<p>software2.exe -m output1.mhd -n input2.mhd -o output2.mhd</p>
<p> </p>
<p>software1 is built on ITK3</p>
<p>software2 is built on ITK4</p>
<p> </p>
<p>If I replace output1.mhd with input2.mhd , software 2 does not give any error.
</p>
<p>(do software2.exe -m input2.mhd -n input2.mhd -o output2.mhd)</p>
<p> </p>
<p>The weird thing is if I visually check output1.mhd and inpput2.mhd, they do not look different, but their position of origion differs slightly.</p>
<p> </p>
<p> the origins are:</p>
<p>5.000000000005e-07</p>
<p style="text-indent: 0px; margin: 0px;">11.9531125</p>
<p style="text-indent: 0px; margin: 0px;">104.4</p>
<p> </p>
<p>and </p>
<p> </p>
<p>4.99188999997235e-07</p>
<p style="text-indent: 0px; margin: 0px;">11.9531254992</p>
<p style="text-indent: 0px; margin: 0px;">104.400004148079</p>
<p style="text-indent: 0px; margin: 0px;"> </p>
<p style="text-indent: 0px; margin: 0px;">I would appreciate you if you can help me to solve this problem, thanks a lot!!!</p>
</div>
</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.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></blockquote></div><br>