<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Current tolerance is 1e-6 which is usually a good tolerance when comparing floats.<div><br></div><div>These two images have a difference in origin of 1e-5 in the y-coordinate.</div><div><br></div><div>Jim<br><div><br></div><div><br><div><div>On Oct 20, 2011, at 5:39 PM, Bill Lorensen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">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><div> <br class="webkit-block-placeholder"></div><p>I got this error </p><div> <br class="webkit-block-placeholder"></div><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><div> <br class="webkit-block-placeholder"></div><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><div> <br class="webkit-block-placeholder"></div><p>software1 is built on ITK3</p><p>software2 is built on ITK4</p><div> <br class="webkit-block-placeholder"></div><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><div> <br class="webkit-block-placeholder"></div><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><div> <br class="webkit-block-placeholder"></div><p> the origins are:</p><p>5.000000000005e-07</p><div style="text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">11.9531125</div><div style="text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">104.4</div><div> <br class="webkit-block-placeholder"></div><p>and </p><div> <br class="webkit-block-placeholder"></div><p>4.99188999997235e-07</p><div style="text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">11.9531254992</div><div style="text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">104.400004148079</div><p style="text-indent: 0px; margin: 0px;"> </p><div style="text-indent: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I would appreciate you if you can help me to solve this problem, thanks a lot!!!</div>
</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>
</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><b><font color="#000000" size="2" face="Arial">Jim Miller</font></b><font size="2" face="Arial Unicode MS"></font><br><font color="#000000" size="2" face="Arial">Senior Scientist</font><br><font color="#000000" size="2" face="Arial">GE Research</font> <br><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: small; ">Interventional and Therapy</span></font></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="font-size: small; "><br></span></font><font color="#0000FF" size="2" face="Arial">GE imagination at work</font></div></div></span></span>
</div>
<br></div></div></body></html>