coordToIndex {neuroim}R Documentation

Generic function to convert N-dimensional real world coordinates to 1D indices

Description

Generic function to convert N-dimensional real world coordinates to 1D indices

Usage

coordToIndex(x, coords)

## S4 method for signature 'BrainSpace,matrix'
coordToIndex(x, coords)

## S4 method for signature 'BrainSpace,numeric'
coordToIndex(x, coords)

## S4 method for signature 'BrainVolume,matrix'
coordToIndex(x, coords)

Arguments

x

the object

coords

a matrix of real world coordinates

Value

a vector of indices


[Package neuroim version 0.0.6 Index]