MantisBT - ITK
View Issue Details
0005637ITKpublic2007-08-31 07:482008-01-26 23:56
Dieter Hahn 
Bill Lorensen 
normalmajoralways
closedfixed 
 
 
0005637: ImageTransformHelper computations wrong for 1D
The ImageTransformHelper realizes some meta template programs for the transform of index to physical point and vice versa. As the programs are currently written, this does not work for all dimensions. Especially, it fails for 1D.

In order to let it work for all dimensions, please see the attached suggestion for a fix.

Thanks,
Dieter
No tags attached.
diff itkImageTransformHelper.diff (783) 2007-08-31 07:48
https://public.kitware.com/Bug/file/1133/itkImageTransformHelper.diff
Issue History
2007-08-31 07:48Dieter HahnNew Issue
2007-08-31 07:48Dieter HahnFile Added: itkImageTransformHelper.diff
2007-11-28 16:13Bill LorensenStatusnew => assigned
2007-11-28 16:13Bill LorensenAssigned To => Bill Lorensen
2008-01-26 23:52Bill LorensenStatusassigned => resolved
2008-01-26 23:52Bill LorensenResolutionopen => fixed
2008-01-26 23:52Bill LorensenNote Added: 0010300
2008-01-26 23:56Bill LorensenStatusresolved => closed
2008-01-26 23:56Bill LorensenNote Added: 0010301

Notes
(0010300)
Bill Lorensen   
2008-01-26 23:52   
Wrote a new test Testing/Code/Common/itkImageTransformTest that use the TransformIndexToPhysicalPoint and TransformPhysicalPointToIndex. The test tried 8, 3, 2 and 1D images. As reported, the computations for 1D were incorrect.

Applied the suggested patch and the results are correct for all dimensions.
(0010301)
Bill Lorensen   
2008-01-26 23:56   
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/Common/itkImageTransformHelper.h?root=Insight&r2=1.9&r1=1.8 [^]

http://www.itk.org/cgi-bin/viewcvs.cgi/Testing/Code/Common/itkCommonTests2.cxx?rev=1.16&root=Insight&sortby=date&view=log [^]

http://www.itk.org/cgi-bin/viewcvs.cgi/Testing/Code/Common/CMakeLists.txt?rev=1.227&root=Insight&sortby=date&view=log [^]

http://www.itk.org/cgi-bin/viewcvs.cgi/Testing/Code/Common/itkImageTransformTest.cxx?rev=1.1&root=Insight&sortby=date&view=log [^]