mris_convert_curv: Convert Curvature file

Description Usage Arguments Value Examples

View source: R/mris_convert_curv.R

Description

This function call mris_convert, using the -c option

Usage

1
mris_convert_curv(curv, opts = "", ...)

Arguments

curv

(character) scalar curv overlay file

opts

(character) additional options to mris_convert

...

additional arguments to mris_convert

Value

Result of mris_convert

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (have_fs()) {
 bert_surf_dir = file.path(fs_subj_dir(), "bert", "surf")
 asc_file = mris_convert_curv(
 infile = file.path(bert_surf_dir, "lh.white"),
 curv = file.path(bert_surf_dir, "lh.thickness")
 )  
 res = read_fs_table(asc_file, header = FALSE)
 colnames(res) = c("index", "coord_1", "coord_2", "coord_3", "value")
 head(res)
}  

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