Skip to contents

convert n-dimensional real world coordinates to grid coordinates

Usage

coord_to_grid(x, coords)

# S4 method for NeuroSpace,matrix
coord_to_grid(x, coords)

# S4 method for NeuroSpace,numeric
coord_to_grid(x, coords)

# S4 method for NeuroVol,matrix
coord_to_grid(x, coords)

# S4 method for NeuroVol,numeric
coord_to_grid(x, coords)

Arguments

x

the object

coords

a matrix of real world coordinates

Value

a matrix of grid coordinates