nifti.file.uses.fshack: Determine whether a NIFTI file uses the FreeSurfer hack.

Description Usage Arguments Value Note

View source: R/read_nifti1.R

Description

Determine whether a NIFTI file uses the FreeSurfer hack.

Usage

1

Arguments

filepath

path to a NIFTI v1 file (single file version), which can contain the FreeSurfer hack.

Value

logical, whether the file header contains the FreeSurfer format hack. See read.nifti1.header for details. This function detects NIFTI v2 files, but as they cannot contain the hack, it will always return 'FALSE' for them.

Note

Applying this function to files which are not in NIFTI format will result in an error. See nifti.file.version to determine whether a file is a NIFTI file.


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