mri_segment: Use Freesurfers MRI Segmentation Algorithm

Description Usage Arguments Value Note Examples

View source: R/mri_segment.R

Description

This function calls mri_segment to segment tissues from an image

Usage

1
mri_segment(file, outfile = NULL, retimg = TRUE, opts = "", ...)

Arguments

file

(character) input filename

outfile

(character) output filename

retimg

(logical) return image of class nifti

opts

(character) additional options to mri_segment

...

additional arguments passed to fs_cmd.

Value

Character or nifti depending on retimg

Note

NOT COMPLETE

Examples

1
2
3
4
5
6
## Not run: 
if (have_fs()){
    mri_segment("/path/to/T1.nii.gz")
} 

## End(Not run) 

Example output



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