get.dti.trk.endianness {freesurferformats} | R Documentation |
Determine endianness of TRK file.
Description
Determine endianness of TRK file.
Usage
get.dti.trk.endianness(filepath)
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.
[Package freesurferformats version 0.1.18 Index]