View source: R/write_dti_tracks.R
| build.mrtrix.header.stable | R Documentation |
The length of the header determines the data offset that is stored inside the header, so the two have to be reconciled: the offset is written with a number of digits that depends on its own value, which can change the length of the header. Starting from an offset guess and recomputing until it is stable always terminates, since the length only ever grows with the number of digits and that number is bounded.
build.mrtrix.header.stable(header_id, entries, datatype, count)
header_id |
character string, the file type identifier, one of 'mrtrix tracks' (TCK) or 'mrtrix track scalars' (TSF). |
entries |
named list of additional header entries. |
datatype |
character string, the datatype. |
count |
integer, the number of streamlines. |
named list with entries text (the header) and offset.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.