read.fs.gca: Read FreeSurfer GCA file.

Description Usage Arguments Value Author(s) Examples

Description

Read FreeSurfer GCA file.

Usage

1
read.fs.gca(filepath)

Arguments

filepath

character string, path to a file in binary GCA format. Stores array of Gaussian classifiers for probabilistic atlas.

Value

named list, the file fields. The GCA data is in the data field.

Author(s)

This function is based on Matlab code by Bruce Fischl, published under the FreeSurfer Open Source License available at https://surfer.nmr.mgh.harvard.edu/fswiki/FreeSurferSoftwareLicense. The R version was written by Tim Schaefer.

Examples

1
2
3
4
5
## Not run: 
gca_file = file.path(Sys.getenv('FREESURFER_HOME'), 'average', 'face.gca');
gca = read.fs.gca(gca_file);

## End(Not run)

freesurferformats documentation built on Feb. 11, 2022, 5:06 p.m.