Learn R Programming

freesurfer (version 1.6.10)

freesurfer_read_surf: Read Freesurfer Surface file

Description

Reads a Freesurfer Surface file from the surf/ directory from recon-all

Usage

freesurfer_read_surf(file)

Value

List of length 2: vertices and faces are the elements

Arguments

file

surface file (e.g. lh.inflated)

Examples

Run this code
if (have_fs()) {
   fname = file.path(fs_subj_dir(), "bert", "surf", "lh.inflated")
   out = freesurfer_read_surf(fname)
}

Run the code above in your browser using DataLab