BrainBucket-class {neuroim}R Documentation

BrainBucket

Description

a four-dimensional image that conists of a sequence of labeled image volumes backed by a list

Constructor function for BrainBucket class

Usage

BrainBucket(volumeList)

Arguments

volumeList

a named list of BrainVolume instances

Value

an instance of class BrainBucket

Slots

source

the data source for the bucket volumes

labels

the names of the sub-volumes contained in the bucket

data

a list of BrainVolume instances with names corresponding to volume labels

Examples

vol1 <- BrainVolume(rnorm(24*24*24), BrainSpace(c(24,24,24), c(1,1,1)))
vol2 <- BrainVolume(rnorm(24*24*24), BrainSpace(c(24,24,24), c(1,1,1)))
vol3 <- BrainVolume(rnorm(24*24*24), BrainSpace(c(24,24,24), c(1,1,1)))
vlist <- list(vol1,vol2,vol3)
names(vlist) <- paste0("V", 1:3)
bucket <- BrainBucket(vlist)
all.equal(dim(bucket[[1]]), dim(vol1))

[Package neuroim version 0.0.6 Index]