View source: R/read_dti_tcktsf.R
| read.dti.tck.header | R Documentation |
Reads only the ASCII header of the file, without touching the binary payload. This is cheap even for huge tractograms and can be used to inspect a file before deciding whether to read its tracks.
read.dti.tck.header(filepath)
filepath |
character string, path to the |
named list, the parsed header. The entries of the 'derived' entry describe the payload (data offset, datatype, endianness, and whether the file is gzip-compressed).
## Not run:
hdr <- read.dti.tck.header("brain.tck");
hdr$count; # number of streamlines stated in the header
hdr$derived$gzipped; # TRUE for a .tck.gz file
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.