Read morphometry data from FreeSurfer NIFTI format files, determine NIFTI version automatically.

read.fs.morph.nii(filepath)

Arguments

filepath

path to a file in FreeSurfer NIFTI v1 or v2 format, potentially with the FreeSurfer hack for v1. See read.nifti1.data and read.nifti2.data for details.

Value

numeric vector, the morphometry data