johncolby/along-tract-stats — pull request #4 by jadrian (2012-06-26 22:35:37+00:00)
Title: trk_read support for unknown number of tracks

Hi John-

The trackvis documentation at http://trackvis.org/docs/?subsect=fileformat indicates that the n_count value in the .trk header can be zero when (for some reason) the number of tracks in the file is not stored in the header. In this case, you just have to parse the body of the file in an online fashion, looking for an eof. I've edited trk_read.m to support this case. Would you consider merging this change into the master?

Thanks,
Jadrian Miles
jadrian@cs.brown.edu
jadrian.org