get.dti.trk.endianness: Determine endianness of TRK file.

Description Usage Arguments Value Note

View source: R/read_dti_trk.R

Description

Determine endianness of TRK file.

Usage

1

Arguments

filepath

character string, path to file in trk format.

Value

endina character string. one of 'little' or 'big'.

Note

This function checks endiannes via the header size field of the file header, which must be 1000 for TRK files when read with correct enianness. It will stop if the file is not in TRK format, i.e., if the field is not 1000 in any endianness.


freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.