Description Usage Arguments Value Examples
Generic function to convert 1D indices to N-dimensional real world coordinates
1 2 3 4 5 6 7 | indexToCoord(x, idx)
## S4 method for signature 'BrainSpace,index'
indexToCoord(x, idx)
## S4 method for signature 'BrainVolume,index'
indexToCoord(x, idx)
|
x |
the object |
idx |
the 1D indices |
a matrix of real 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 <- indexToCoord(bvol, idx)
idx2 <- coordToIndex(bvol, g)
all.equal(idx, idx2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.