gridToIndex: Generic function to convert N-dimensional grid coordinate to 1D indices
Description
Generic function to convert N-dimensional grid coordinate to 1D indices
Usage
gridToIndex(x, coords)
"gridToIndex"(x, coords)
"gridToIndex"(x, coords)
"gridToIndex"(x, coords)
"gridToIndex"(x, coords)
"gridToIndex"(x, coords)
Arguments
x
the object, typically a BrainVolume
or BrainSpace
instance.
coords
a matrix where each row is a coordinate or a vector of length equal to ndim(x)
Value
a vector of indices