<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap:break-word; color:rgb(0,0,0); font-size:14px; font-family:Calibri,sans-serif">
<div>
<div>
<div>I would state that the program must not be correctly respecting the image orientations in a way that is compatible with ITK's notion of sameness. </div>
<div><br>
</div>
<div>Hans</div>
<div>
<div>
<div>-- </div>
<div>
<div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Hans J. Johnson, Ph.D.</span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt"><a href="mailto:hans-johnson@uiowa.edu">hans-johnson@uiowa.edu</a></span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Assistant Professor of Psychiatry</span></font></div>
<div style="font-family:Calibri; font-size:15px"><span class="Apple-style-span" style="font-size:13px; font-family:Arial">University of Iowa Carver College of Medicine</span></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt"><span class="Apple-style-span" style="font-family:Calibri; font-size:15px">
<div><span class="Apple-style-span" style="font-size:13px; font-family:Arial">W278 GH, 200 Hawkins Drive</span></div>
</span></span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Iowa City, Iowa 52242</span></font></div>
<div style="font-family:Calibri; font-size:15px"><font face="Arial" size="2"><span style="font-size:10pt">Phone: 319-353-8587</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; border-bottom:medium none; border-left:medium none; padding-bottom:0in; padding-left:0in; padding-right:0in; border-top:#b5c4df 1pt solid; border-right:medium none; padding-top:3pt">
<span style="font-weight:bold">From: </span>"Miller, James V (GE Global Research)" <<a href="mailto:millerjv@ge.com">millerjv@ge.com</a>><br>
<span style="font-weight:bold">Date: </span>Thu, 20 Oct 2011 22:10:24 +0000<br>
<span style="font-weight:bold">To: </span>Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>>, Hui Tang - TNW <<a href="mailto:H.Tang@tudelft.nl">H.Tang@tudelft.nl</a>>, "Miller,
James V (GE Global Research)" <<a href="mailto:millerjv@ge.com">millerjv@ge.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Insight-users] Inputs do not pccupy the same physical space!<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word">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">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"><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">
<div style="word-wrap:break-word">
<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>
</div>
</div>
_____________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at
<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a> Kitware offers ITK Training Courses, for more information visit:
<a href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</a> Please keep messages on-topic and check the ITK FAQ at:
<a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a> Follow this link to subscribe/unsubscribe:
<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</span><br>
<br>
<hr>
Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any
retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you.
<hr>
</body>
</html>