johncolby / along-tract-stats

A MATLAB toolbox for performing along-tract analysis of diffusion tensor imaging (DTI) MRI tractography data.
http://github.com/johncolby/along-tract-stats/wiki
GNU General Public License v3.0
41 stars 15 forks source link

Store track matrix and properties as single-precision floats, as in header #5

Closed jadrian closed 12 years ago

jadrian commented 12 years ago

Hey again John --- When dealing with massive tractography datasets, Matlab can run short on memory. One reason is that the coordinates of the track points are stored in Matlab as double-precision floats, though the .trk file only stores them in single precision. A small change (storing these points in the Matlab representation as single-precision floats too) allows for half the memory footprint with no loss of precision. I've tested this change out on my own machine and it works fine. Would you be interested in pulling into the master?

Thanks, Jadrian

johncolby commented 12 years ago

Looks great, Jadrian. Thanks for contributing!