<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle">P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body fPStyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;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; -qt-block-indent: 0">11.9531125</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">104.4</p>
<p> </p>
<p>and </p>
<p> </p>
<p>4.99188999997235e-07</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">11.9531254992</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">104.400004148079</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> </p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0">I would appreciate you if you can help me to solve this problem, thanks a lot!!!</p>
</div>
</body>
</html>