Learn R Programming

freesurfer (version 1.6.10)

freesurfer_read_curv: Read Freesufer Curv file

Description

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

Usage

freesurfer_read_curv(file)

Value

Numeric vector

Arguments

file

file name of a curvature file

Examples

Run this code
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)
} 

Run the code above in your browser using DataLab