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
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