MantisBT - ITK
View Issue Details
0008709ITKpublic2009-03-09 21:362009-03-10 19:55
Hans Johnson 
 
highmajoralways
closedfixed 
ITK-3-12 
ITK-3-12 
0008709: NIFTI Vector Images not preserving orientation
The orienation of the vector images are no longer being preserved. This bug was exposed when other bug fixes were included for the case where a higher dimensional image is read into a lower dimensional image. The vector image filter had depended on the fact that this was not being checked, and now that it is being checked the results are often that the vector image would get the default of an identity matrix for its orientation.

This bug was mostly due to trying to make itk read and write up to 6 dimensional vector images, BUT Nifti can only handle vector images up to 4 dimensions.

There are several other limitations of the nifti IO mechanism that this code review discoverd, but only those relating to reading and writing up to 3 dimensional vector images were addressed.
The patch for this is nearly complete. The test suite is being expanded to fully test vector images with non-identity directions.
No tags attached.
Issue History
2009-03-09 21:36Hans JohnsonNew Issue
2009-03-10 19:55Hans JohnsonNote Added: 0015629
2009-03-10 19:55Hans JohnsonStatusnew => closed
2009-03-10 19:55Hans JohnsonResolutionopen => fixed
2009-03-10 19:55Hans JohnsonFixed in Version => ITK-3-12

Notes
(0015629)
Hans Johnson   
2009-03-10 19:55   
This bug was fixed by rewriting the code to only work up to 4 dimensions for vector images.

/cvsroot/Insight/Insight/Code/IO/itkNiftiImageIO.cxx,v <-- Code/IO/itkNiftiImageIO.cxx
new revision: 1.74; previous revision: 1.73
/cvsroot/Insight/Insight/Testing/Code/IO/itkNiftiImageIOTest.cxx,v <-- Testing/Code/IO/itkNiftiImageIOTest.cxx
new revision: 1.23; previous revision: 1.22