freesurfer_read_curv: Read Freesufer Curv file

Description Usage Arguments Value Examples

View source: R/freesurfer_read3.R

Description

Reads a Freesurfer curvature file according to the FREESURFER_HOME/matlab/read_curv.m file.

Usage

1

Arguments

file

file name of a curvature file

Value

Numeric vector

Examples

1
2
3
4
5
6
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_read_curv(file)
} 

Example output



freesurfer documentation built on Dec. 9, 2020, 1:07 a.m.