Learn R Programming

freesurfer (version 1.6.10)

convert_surface: Convert Freesurfer Surface

Description

Reads in a surface file from Freesurfer and separates into vertices and faces

Usage

convert_surface(infile, ...)

Value

List of 3 elements: a header indicating the number of vertices and faces, the vertices, and the faces

Arguments

infile

Input surface file

...

additional arguments to pass to mris_convert

Examples

Run this code
if (have_fs()) {
infile = file.path(fs_subj_dir(), 
                   "bert", "surf", "rh.pial")
res = convert_surface(infile = infile)
}

Run the code above in your browser using DataLab