Reads first 3 records from a connection and returns the rotated value, for checking for other functions.
freesurfer_read3_con(fid)
fid | connection to a 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")
fid = file(file, open = "rb")
out = freesurfer_read3_con(file)
}