MantisBT - ITK
View Issue Details
0007485ITKpublic2008-08-13 08:322010-10-21 12:32
Luke Bloy 
kentwilliams 
normalmajoralways
closedfixed 
ITK-3-8 
 
0007485: itkNiftiImageIO saves tensors in non-standard way
Nifti 1.1 supports the SYMMATRIX intent code for the saving of symmetric matrices. The format as described in http://godzilla.kennedykrieger.org/sw/niftilib/group__NIFTI1__INTENT__CODES.html [^] , is lower triangular. itk uses upper triangular for it's internal storage and then uses the Vector intent code and saves the tensors in upper triangular order.

This makes the nifti files incompatible with other software such as afni/medInria etc.
I'm attaching an edited 3.6 itkNiftiImageIO.cxx file that I believe addresses the issue although it is specific for the tensor class not for the itkSymmetricSecondRankTensor class
No tags attached.
cxx itkNiftiImageIO.cxx (48,274) 2008-08-13 08:32
https://public.kitware.com/Bug/file/1663/itkNiftiImageIO.cxx
Issue History
2008-08-13 08:32Luke BloyNew Issue
2008-08-13 08:32Luke BloyFile Added: itkNiftiImageIO.cxx
2009-03-10 20:13Hans JohnsonStatusnew => assigned
2009-03-10 20:13Hans JohnsonAssigned To => kentwilliams
2009-03-12 15:55kentwilliamsStatusassigned => resolved
2009-03-12 15:55kentwilliamsResolutionopen => fixed
2010-10-21 12:32Gabe HartStatusresolved => closed

There are no notes attached to this issue.