<html><head><base href="x-msg://58/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hui,&nbsp;<div><br></div><div>Can you look inside the mhd files at the header and see what the origins are listed as in the file?</div><div><br></div><div>What about another file format? Does the same thing happen with the NIFTI format?</div><div><br></div><div>Jim</div><div><br></div><div><br><div><div>On Oct 21, 2011, at 5:09 AM, Hui Tang - TNW wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Arial; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-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; font-size: medium; "><div fpstyle="1" ocsi="0"><div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 10pt; "><div style="margin-top: 0px; margin-bottom: 0px; ">Dear all,</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">Thanks a lot fot this!!!!!!!</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">Bill, I donot know really what you mean with Point to datasets.........how can I oint that?</div><div style="margin-top: 0px; margin-bottom: 0px; ">Jim, I never change origins on purpose, and I have no idea these origins were changed after a filter.............what can I do with it?</div><div style="margin-top: 0px; margin-bottom: 0px; ">Arnaud, Hans,thank you tooo for your quick reply</div><div style="margin-top: 0px; margin-bottom: 0px; ">Thanks!</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">Best,</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">Hui<br></div><div style="font-family: 'Times New Roman'; color: rgb(0, 0, 0); font-size: 16px; "><hr tabindex="-1"><div id="divRpF381827" style="direction: ltr; "><font color="#000000" size="2" face="Tahoma"><b>Van:</b><span class="Apple-converted-space">&nbsp;</span>Bill Lorensen [<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>]<br><b>Verzonden:</b><span class="Apple-converted-space">&nbsp;</span>donderdag 20 oktober 2011 23:39<br><b>Aan:</b><span class="Apple-converted-space">&nbsp;</span>Hui Tang - TNW<br><b>CC:</b><span class="Apple-converted-space">&nbsp;</span><a href="mailto:insight-users@itk.org">insight-users@itk.org</a>; Jim Miller; Jimbo<br><b>Onderwerp:</b><span class="Apple-converted-space">&nbsp;</span>Re: [Insight-users] Inputs do not pccupy the same physical space!<br></font><br></div><div></div><div>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 class="Apple-converted-space">&nbsp;</span><span dir="ltr">&lt;<a href="mailto:H.Tang@tudelft.nl" target="_blank">H.Tang@tudelft.nl</a>&gt;</span><span class="Apple-converted-space">&nbsp;</span>wrote:<br><blockquote class="gmail_quote" style="border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.8ex; padding-left: 1ex; "><div><div style="font-family: Tahoma; direction: ltr; color: rgb(0, 0, 0); font-size: 10pt; "><div style="margin-top: 0px; margin-bottom: 0px; ">Dear ITK user,</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">I got this error</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">terminate called after throwing an instance of 'itk::ExceptionObject'<br>&nbsp; what():&nbsp; /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></div><div style="margin-top: 0px; margin-bottom: 0px; ">when I read one image.</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">I did</div><div style="margin-top: 0px; margin-bottom: 0px; ">software1.exe -i input.mhd -o output1.mhd</div><div style="margin-top: 0px; margin-bottom: 0px; ">software2.exe -m output1.mhd -n input2.mhd -o output2.mhd</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">software1 is built on ITK3</div><div style="margin-top: 0px; margin-bottom: 0px; ">software2 is built on ITK4</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">If I replace output1.mhd with&nbsp; input2.mhd , software 2 does not give any error.</div><div style="margin-top: 0px; margin-bottom: 0px; ">(do&nbsp; software2.exe -m input2.mhd -n input2.mhd -o output2.mhd)</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">The weird thing is if I visually check output1.mhd&nbsp;and &nbsp;inpput2.mhd, they do not look different, but their position of origion&nbsp; differs slightly.</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;the origins are:</div><div style="margin-top: 0px; margin-bottom: 0px; ">5.000000000005e-07</div><div style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 0px; margin-left: 0px; ">11.9531125</div><div style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 0px; margin-left: 0px; ">104.4</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">and</div><p style="margin-top: 0px; margin-bottom: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; ">4.99188999997235e-07</div><div style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 0px; margin-left: 0px; ">11.9531254992</div><div style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 0px; margin-left: 0px; ">104.400004148079</div><p style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 0px; margin-left: 0px; ">&nbsp;</p><div style="margin-top: 0px; margin-bottom: 0px; text-indent: 0px; margin-right: 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<span class="Apple-converted-space">&nbsp;</span><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></blockquote></div></div></div></div></div></span></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>&nbsp;<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></body></html>