mri_convert: Use Freesurfers MRI Converter

Description Usage Arguments Value Examples

View source: R/mri_convert.R

Description

This function calls mri_convert to convert an image

Usage

1
mri_convert(file, outfile, opts = "")

Arguments

file

(character) input filename

outfile

(character) output filename

opts

(character) additional options to mri_convert

Value

Result of system command

Examples

1
2
3
4
if (have_fs()) {
   img = oro.nifti::nifti(array(rnorm(5*5*5), dim = c(5,5,5))) 
   res = mri_convert(img, outfile = tempfile(fileext = ".mgz"))
} 

neuroconductor-devel/freesurfer documentation built on May 23, 2019, 1:49 p.m.