[Insight-users] Inputs do not pccupy the same physical space!

Hui Tang - TNW H.Tang at tudelft.nl
Fri Oct 21 05:09:56 EDT 2011


Dear all,



Thanks a lot fot this!!!!!!!



Bill, I donot know really what you mean with Point to datasets.........how can I oint that?

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?

Arnaud, Hans,thank you tooo for your quick reply

Thanks!



Best,



Hui

________________________________
Van: Bill Lorensen [bill.lorensen at gmail.com]
Verzonden: donderdag 20 oktober 2011 23:39
Aan: Hui Tang - TNW
CC: insight-users at itk.org; Jim Miller; Jimbo
Onderwerp: Re: [Insight-users] Inputs do not pccupy the same physical space!

Hui,

We recently added this check. Looks like we need to add a tolerance to the check.

I'ved cc'ed Jim Miller. He added the new check.

Can you point us to the datasets?

Bill

On Thu, Oct 20, 2011 at 2:31 PM, Hui Tang - TNW <H.Tang at tudelft.nl<mailto:H.Tang at tudelft.nl>> wrote:

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!!!

_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111021/e3a45fa8/attachment.htm>


More information about the Insight-users mailing list