Learn R Programming

fmri (version 1.9.12.1)

Convert Between fmridata and oro.nifti: Convert Between fmridata and oro.nifti Objects

Description

NIfTI data can be converted between fmridata S3 objects (from the fmri package) and nifti S4 objects.

Usage

oro2fmri(from, value = NULL, level = 0.75, mask=NULL, setmask = TRUE)
fmri2oro(from, value = NULL, verbose = FALSE, reorient = FALSE,
         call = NULL)

Value

The function oro2fmri produces an S3 object of class

fmridata. The function fmri2oro produces an S4 object of class nifti.

Arguments

from

is the object to be converted.

value

NULL

level

is the quantile level defining the mask.

mask

array or nifti-object containing the mask. If set this replaces the mask defined by argument level.

setmask

is a logical variable (default = TRUE), whether to define a suitable mask based on level.

verbose

is a logical variable (default = FALSE) that allows text-based feedback during execution of the function.

reorient

is a logical variable (default = TRUE) that enforces Qform/Sform transformations.

call

keeps track of the current function call for use in the NIfTI extension.

Author

Brandon Whitcher bwhitcher@gmail.com

Details

These functions enhance the capabilities of fmri by allowing the exchange of data objects between nifti and fmridata classes.

See Also

read.NIFTI