coord_to_index-methods: convert n-dimensional real world coordinates to 1D indices

coord_to_indexR Documentation

convert n-dimensional real world coordinates to 1D indices

Description

convert n-dimensional real world coordinates to 1D indices

Usage

coord_to_index(x, coords)

## S4 method for signature 'NeuroSpace,matrix'
coord_to_index(x, coords)

## S4 method for signature 'NeuroSpace,numeric'
coord_to_index(x, coords)

## S4 method for signature 'NeuroVol,matrix'
coord_to_index(x, coords)

Arguments

x

the object

coords

a matrix of real world coordinates

Value

a vector of indices


bbuchsbaum/neuroim2 documentation built on March 29, 2024, 6:36 p.m.