Description Usage Arguments Value Examples
Generic function to convert 1D indices to N-dimensional grid coordinates
1 2 3 4 5 6 7 8 9 10 11 12 13 | indexToGrid(x, idx)
## S4 method for signature 'BrainSlice,index'
indexToGrid(x, idx)
## S4 method for signature 'BrainSpace,index'
indexToGrid(x, idx)
## S4 method for signature 'BrainVector,index'
indexToGrid(x, idx)
## S4 method for signature 'BrainVolume,index'
indexToGrid(x, idx)
|
x |
the object |
idx |
the 1D |
a matrix of grid coordinates
1 2 3 4 5 |
bvol <- BrainVolume(array(0, c(10,10,10)), BrainSpace(c(10,10,10), c(1,1,1)))
idx <- 1:10
g <- indexToGrid(bvol, idx)
bvol[g]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.