gridToIndex-methods: Generic function to convert N-dimensional grid coordinate to...

Description Usage Arguments Value

Description

Generic function to convert N-dimensional grid coordinate to 1D indices

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
gridToIndex(x, coords)

## S4 method for signature 'BrainSlice,matrix'
gridToIndex(x, coords)

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

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

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

## S4 method for signature 'BrainVolume,numeric'
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


neuroim documentation built on May 2, 2019, 1:04 p.m.