Construct a NeuroSlice object
Usage
NeuroSlice(data, space, indices = NULL)
Arguments
- data
data vector or matrix
- space
an instance of class NeuroSpace
- indices
linear indices corresponding used if data
is a 1D vector.
Value
a new instance of type NeuroSlice
Examples
bspace <- NeuroSpace(c(64,64), spacing=c(1,1))
dat <- array(rnorm(64*64), c(64,64))
bslice <- NeuroSlice(dat,bspace)
bslice
#> NeuroSlice
#> Type : NeuroSlice
#> Dimension : 64 64
#> Spacing : 1 X 1
#> Origin : 0 X 0
#> Axes : Left-to-Right Posterior-to-Anterior