[Insight-users] Inputs do not pccupy the same physical space!
Hui Tang - TNW
H.Tang at tudelft.nl
Thu Oct 20 14:31:22 EDT 2011
Dear ITK user,
I got this error
terminate called after throwing an instance of 'itk::ExceptionObject'
what(): /home/htang/Programs/ITK4/ITK/Modules/Core/Common/include/itkImageToImageFilter.hxx:253:
itk::ERROR: xxxxxxxxxxxtImageFilter(0x166f080): Inputs do not occupy the same physical space!
InputImage Origin: [0.117188, 12.0703, 104.7], InputImage1 Origin: [0.117188, 12.0703, 104.7]
when I read one image.
I did
software1.exe -i input.mhd -o output1.mhd
software2.exe -m output1.mhd -n input2.mhd -o output2.mhd
software1 is built on ITK3
software2 is built on ITK4
If I replace output1.mhd with input2.mhd , software 2 does not give any error.
(do software2.exe -m input2.mhd -n input2.mhd -o output2.mhd)
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.
the origins are:
5.000000000005e-07
11.9531125
104.4
and
4.99188999997235e-07
11.9531254992
104.400004148079
I would appreciate you if you can help me to solve this problem, thanks a lot!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111020/39495a84/attachment.htm>
More information about the Insight-users
mailing list