[Mrtrix-discussion] fibre tracts format
Philip G Batchelor
philip.batchelor at kcl.ac.uk
Fri Mar 12 00:27:14 PST 2010
Hi Donald
cheers! just what I was looking for, basically I was planning to write a
Matlab script, sounds all good then!
it's cold here!
Ph
Donald Tournier wrote:
> Hi Philip,
>
> 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.
>
> 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).
>
> 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).
>
> Anyway, I've attached a little matlab script to load the tracks, which
> you might find useful...
>
> Cheers!
>
> Donald.
>
>
> On 11 March 2010 22:38, Philip G Batchelor <philip.batchelor at kcl.ac.uk
> <mailto:philip.batchelor at kcl.ac.uk>> wrote:
>
> Hi
>
> am trying to find in the documentation a description of the output
> file format for fibre tracking, i.e.
> .tc and .tck file formats, as I need to write some data readers.
> Sorry, I guess it's somewhere, and am just missing it.
>
> Ph
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> <mailto:Mrtrix-discussion at www.nitrc.org>
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>
>
>
> --
> Jacques-Donald Tournier (PhD)
> Brain Research Institute, Melbourne, Australia
> Tel: +61 (0)3 9496 4078
More information about the Mrtrix-discussion
mailing list