coords,IndexLookupVol-method {neuroim2} | R Documentation |
Extract Coordinates from an IndexLookupVol Object
Description
Extracts the coordinates from an IndexLookupVol object based on a given index.
Usage
## S4 method for signature 'IndexLookupVol'
coords(x, i)
## S4 method for signature 'ROIVol'
coords(x, real = FALSE)
## S4 method for signature 'ROICoords'
coords(x, real = FALSE)
## S4 method for signature 'ROICoords'
coords(x, real = FALSE)
## S4 method for signature 'AbstractSparseNeuroVec'
coords(x, i)
Arguments
x |
An |
i |
The index into the lookup volume |
real |
if |
Value
A matrix of coordinates
Examples
space <- NeuroSpace(c(64, 64, 64), c(1, 1, 1), c(0, 0, 0))
ilv <- IndexLookupVol(space, c(1:100))
coords(ilv, 1) # Extract coordinates for index 1
[Package neuroim2 version 0.8.1 Index]