Extract Coordinates from an IndexLookupVol Object
Source:R/index_vol.R
, R/roi.R
, R/sparse_neurovec.R
coords-methods.Rd
Extracts the coordinates from an IndexLookupVol object based on a given index.
Arguments
- x
An
IndexLookupVol
object to extract coordinates from- i
The index into the lookup volume
- real
if
TRUE
, return coordinates in real world units
Value
The extracted coordinates corresponding to the provided index If the index is not found, it returns NA
A matrix of coordinates
Examples
if (FALSE) { # \dontrun{
ilv <- IndexLookupVol(space, c(1:100))
coords(ilv, 1) # Extract coordinates for index 1
} # }