matricized_access-methods: Extract values from a matricized (x,y,z) of a 4D tensor using...

matricized_accessR Documentation

Extract values from a matricized (x,y,z) of a 4D tensor using a space-time coordinate matrix.

Description

This function extracts the values of the elements in a 4D tensor, where the first three dimensions (x,y,z) have been matricized into a single dimension, using a space-time coordinate matrix. The input i is an index matrix, where each row specifies a (x,y,z,t) coordinate. The output is a vector containing the values of the elements in x at the specified space-time coordinates.

Usage

matricized_access(x, i, ...)

Arguments

x

a data source.

i

an index matrix specifying the space-time coordinates.

...

additional arguments to be passed to methods.


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.