powered by
Extracts the coordinates from an IndexLookupVol object based on a given index.
# S4 method for IndexLookupVol coords(x, i)# S4 method for ROIVol coords(x, real = FALSE)# S4 method for ROICoords coords(x, real = FALSE)# S4 method for AbstractSparseNeuroVec coords(x, i)
# S4 method for ROIVol coords(x, real = FALSE)
# S4 method for ROICoords coords(x, real = FALSE)
# S4 method for AbstractSparseNeuroVec coords(x, i)
A matrix of coordinates
An IndexLookupVol object to extract coordinates from
IndexLookupVol
The index into the lookup volume
if TRUE, return coordinates in real world units
TRUE
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
Run the code above in your browser using DataLab