Learn R Programming

fsbrain (version 1.0.0)

vol.sample.trilinear: Sample a 3D volume at the given voxel coordinates using trilinear interpolation.

Description

Sample a 3D volume at the given voxel coordinates using trilinear interpolation.

Usage

vol.sample.trilinear(volume_data, coords)

Value

numeric vector, one interpolated value per query point.

Arguments

volume_data

numeric 3D array, the volume data.

coords

numeric matrix with 3 columns and one row per query point, the 0-based voxel coordinates (column, row, slice). Coordinates must be within the volume, or an error will be raised.