R/read_nifti1.R
read.nifti1.header.Rd
Read NIFTI v1 header from file (which may contain the FreeSurfer hack).
read.nifti1.header(filepath)
filepath | path to a NIFTI v1 file (single file version), which can contain the FreeSurfer hack. |
---|
named list with NIFTI 1 header fields.
The FreeSurfer hack is a non-standard way to save long vectors (one dimension greater than 32767 entries) in NIFTI v1 files. Files with this hack are produced when converting MGH or MGZ files containing such long vectors with the FreeSurfer 'mri_convert' tool.