Description Usage Arguments Value Note Examples
View source: R/convert_surface.R
Reads in a surface file from Freesurfer and separates into vertices and faces
1 | convert_surface(infile, ...)
|
infile |
Input surface file |
... |
additional arguments to pass to
|
List of 3 elements: a header indicating the number of vertices and faces, the vertices, and the faces
This was adapted from the gist: https://gist.github.com/mm–/4a4fc7badacfad874102
1 2 3 4 5 | if (have_fs()) {
infile = file.path(fs_subj_dir(),
"bert", "surf", "rh.pial")
res = convert_surface(infile = infile)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.