SparseNeuroVol-class: SparseNeuroVol

Description Usage Arguments Details Value Slots Examples

Description

Three-dimensional brain image, backed by a sparseVector for Matrix package

Construct a SparseNeuroVol instance

Usage

1

Arguments

data

a numeric vector

space

an instance of class NeuroSpace

indices

a index vector indicating the 1-d coordinates of the data values

label

a character string

Details

Image data is backed by Matrix::sparseVector.

Value

SparseNeuroVol instance

Slots

data

a sparseVector instance

Examples

1
2
3
4
5
6
data <- 1:10
indices <- seq(1,1000, length.out=10)
bspace <- NeuroSpace(c(64,64,64), spacing=c(1,1,1))
sparsevol <- SparseNeuroVol(data,bspace,indices=indices)
densevol <- NeuroVol(data,bspace,indices=indices)
sum(sparsevol) == sum(densevol)

bbuchsbaum/neuroim2 documentation built on Oct. 15, 2019, 2:55 p.m.