BrainVector-class {neuroim}R Documentation

BrainVector

Description

Four-dimensional brain image

constructor function for virtual class BrainVector

Usage

BrainVector(data, space = NULL, mask = NULL, source = NULL, label = "")

Arguments

data

the image data which can be a matrix, a 4d array, or a list of BrainVolumes. If the latter, the geometric space of the data BrainSpace will be inferred from the constituent volumes, which must all be identical.

space

a BrainSpace object. Does not ned to be included if data argument is a list of BrainVolumes

mask

an optional array of type logical

source

an optional BrainSource object

label

a label of type character

Value

a concrete instance of BrainVector class. If mask is provided then SparseBrainVector, otherwise DenseBrainVector


[Package neuroim version 0.0.6 Index]