Reads first 3 records of file and returns the rotated value, for checking for other functions.
freesurfer_read3(file)
file | thickness file or anything in surf/ directory from Freesurfer subject |
---|
Numeric
if (have_fs()) {
bert_dir = file.path(fs_subj_dir(), "bert", "surf")
file = file.path(bert_dir, "lh.thickness")
out = freesurfer_read3(file)
}