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

Miller, James V (GE Global Research) millerjv at ge.com
Thu Oct 20 18:10:24 EDT 2011


Current tolerance is 1e-6 which is usually a good tolerance when comparing floats.

These two images have a difference in origin of 1e-5 in the y-coordinate.

Jim


On Oct 20, 2011, at 5:39 PM, Bill Lorensen wrote:

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

Jim Miller
Senior Scientist
GE Research 
Interventional and Therapy

GE imagination at work

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111020/cddbe91d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3108 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20111020/cddbe91d/attachment.bin>


More information about the Insight-users mailing list