Counts the tracts in a TRK, TCK or TSF file without reading
their coordinates, so this works on arbitrarily large tractograms with a
small and constant amount of memory. This is the equivalent of
tckinfo <file> -count in MRtrix.
Arguments
- filepath
character string, path to the
TCKorTSFfile to read. Gzip-compressed files (i.e.,.tck.gz) are supported and the compression is detected from the file content, not the file name.- chunk_values
integer, the number of payload values to read per chunk. Advanced tuning parameter, see
read.dti.tck.