Hi Philip,<div><br></div><div>Sorry, there is currently no documentation on that file format... It is quite simple, though. It consists of a text header, followed by binary data. </div><div><br></div><div>The first line of the text header should read "mrtrix tracks". Each line after that is a "key: value" pair. The  last line of the text header should be a single "END" statement, after which the data should be considered to be binary. Only two entries in the header are required to read the data. The "file: . offset" entry specifies the byte offset in the current file (".") to the start of the binary data. The "datatype: Float32LE" specifies the datatype (always float32) and byte order (the last two characters, either BE or LE). </div>
<div><br></div><div>The binary data are stored as triplets of 32 bit floating point values, one per point along the track. Boundaries between tracks consist of a triplet of non-finite values, either NaN or Inf (Inf actually signals the end of file).</div>
<div><br></div><div>Anyway, I've attached a little matlab script to load the tracks, which you might find useful...</div><div><br></div><div>Cheers!</div><div><br></div><div>Donald.</div><div><br></div><div><br><div class="gmail_quote">
On 11 March 2010 22:38, Philip G Batchelor <span dir="ltr"><<a href="mailto:philip.batchelor@kcl.ac.uk">philip.batchelor@kcl.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi<br>
<br>
am trying to find in the documentation a description of the output file format for fibre tracking, i.e.<br>
.tc and .tck file formats, as I need to write some data readers. Sorry, I guess it's somewhere, and am just missing it.<br>
<br>
Ph<br>
_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org" target="_blank">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Jacques-Donald Tournier (PhD)<br>Brain Research Institute, Melbourne, Australia<br>Tel: +61 (0)3 9496 4078<br>
</div>