Learn R Programming

freesurfer (version 1.6.8)

mri_segment: Use Freesurfers MRI Segmentation Algorithm

Description

This function calls mri_segment to segment tissues from an image

Usage

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

Examples

Run this code
# NOT RUN {
if (have_fs()){
    mri_segment("/path/to/T1.nii.gz")
} 
# }

Run the code above in your browser using DataLab