BrainBucket-class: BrainBucket

Description Usage Arguments Value Slots Examples

Description

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

Constructor function for BrainBucket class

Usage

1
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

1
2
3
4
5
6
7
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))

neuroim documentation built on May 2, 2019, 1:04 p.m.