MantisBT - ITK
View Issue Details
0011111ITKpublic2010-08-11 10:502011-06-14 08:33
Dzenan Zukic 
Gabe Hart 
normalmajoralways
assignedopen 
ITK-3-20 
 
0011111: Discrepancy of insideness between continuous and discrete index transform
TransformPhysicalPointToIndex and TransformPhysicalPointToContinuousIndex methods of itk::Image class sometimes return different values (one method thinks the point is inside, the other one thinks it is not).

Attached are the simplified source code (with one offending point), header of the image in question, and output generated on my machine (Win7 x64, VS2008 x64 target).
No tags attached.
cpp itkBugTester.cpp (998) 2010-08-11 10:50
https://public.kitware.com/Bug/file/3306/itkBugTester.cpp
? test.mha (405) 2010-08-11 10:50
https://public.kitware.com/Bug/file/3307/test.mha
txt output.txt (1,418) 2010-08-11 10:50
https://public.kitware.com/Bug/file/3308/output.txt
Issue History
2010-08-11 10:50Dzenan ZukicNew Issue
2010-08-11 10:50Dzenan ZukicFile Added: itkBugTester.cpp
2010-08-11 10:50Dzenan ZukicFile Added: test.mha
2010-08-11 10:50Dzenan ZukicFile Added: output.txt
2010-08-11 10:51Dzenan ZukicNote Added: 0021709
2010-08-11 10:53Dzenan ZukicDescription Updated
2010-08-11 10:53Dzenan ZukicSummaryDiscrepancy of insideness between continuous and discreet index transform => Discrepancy of insideness between continuous and discrete index transform
2010-08-12 04:25Dzenan ZukicDescription Updated
2010-08-13 06:45Dzenan ZukicSeverityminor => major
2010-08-16 10:56Dzenan ZukicNote Added: 0021774
2010-11-02 12:36Hans JohnsonStatusnew => assigned
2010-11-02 12:36Hans JohnsonAssigned To => Gabe Hart
2010-12-02 04:04Dzenan ZukicNote Added: 0023663
2011-06-14 08:33Dzenan ZukicNote Added: 0026852

Notes
(0021709)
Dzenan Zukic   
2010-08-11 10:51   
Cute bug number :D
(0021774)
Dzenan Zukic   
2010-08-16 10:56   
Is anyone investigating this bug? If not, I will need to use workaround (test both inside functions before processing).
(0023663)
Dzenan Zukic   
2010-12-02 04:04   
Mr. Hart, any progress on this?
(0026852)
Dzenan Zukic   
2011-06-14 08:33   
I submitted a description of a reproducible bug with minimum working example and a simple test case. Is it really that hard to look into this?

I tried looking into this bug, but the transformation code is quite convoluted.