MantisBT - ITK
View Issue Details
0008895ITKpublic2009-04-16 17:162010-12-06 14:28
kentwilliams 
Luis Ibanez 
normalmajoralways
closedfixed 
ITK-3-12 
 
backlog
0008895: Matlab matrix reader in VXL doesn't byteswap matrix files made on different byte-ordered systems
Some time back I extended the itkTransformFileReader to read and write Matlab transform files. This code is in Insight/Review, and it is used in the BRAINSFit project hosted on NITRC.org

The matlab transform reader/writer depends on the VXL class vnl_matlab_readhdr, which does not do byteswapping in the case of a file created on a system with a different byte-ordering convention.
I enhanced the VXL class to add byte-swapping if necessary. A patch is included here.
No tags attached.
patch vnl_matlab_read.patch (6,367) 2009-04-16 17:16
https://public.kitware.com/Bug/file/2164/vnl_matlab_read.patch
Issue History
2009-04-16 17:16kentwilliamsNew Issue
2009-04-16 17:17kentwilliamsFile Added: vnl_matlab_read.patch
2009-04-16 17:17kentwilliamsStatusnew => assigned
2009-04-16 17:17kentwilliamsAssigned To => kentwilliams
2010-11-01 12:10kentwilliamsNote Added: 0022762
2010-11-18 13:22kentwilliamsAssigned Tokentwilliams => Luis Ibanez
2010-12-06 14:28kentwilliamsSprint Status => backlog
2010-12-06 14:28kentwilliamsNote Added: 0023742
2010-12-06 14:28kentwilliamsStatusassigned => closed
2010-12-06 14:28kentwilliamsResolutionopen => fixed

Notes
(0022762)
kentwilliams   
2010-11-01 12:10   
This patch has been applied to the VXL repository, but VXL in ITK hasn't been updated since then.
(0023742)
kentwilliams   
2010-12-06 14:28   
Fixed for ITK4, by the VXL refresh that went thru recently.