Learn R Programming

neuroim (version 0.0.6)

BrainSlice: BrainSlice constructor

Description

BrainSlice constructor

Usage

BrainSlice(data, space, indices = NULL)

Arguments

data
data vector or matrix
space
an instance of class BrainSpace
indices
linear indices corresponding used if data is a 1D vector.

Examples

Run this code
bspace <- BrainSpace(c(64,64), spacing=c(1,1))
dat <- array(rnorm(64*64), c(64,64))
bslice <- BrainSlice(dat,bspace)
print(bslice) 

Run the code above in your browser using DataLab