spm_sample_vol: SPM: returns voxel values from a memory mapped image - a...

Description Usage Arguments Value

Description

SPM: returns voxel values from a memory mapped image - a compiled routine

Usage

1
2
3
4
X = spm_sample_vol(V,x,y,z,hold);
[X,dX,dY,dZ] = spm_sample_vol(V,x,y,z,hold);
Similar to above, except that the derivatives in the three orthogonal
directions are also returned.

Arguments

V

a memory mapped image volume

x

matrix of x coordinates pixels

y

matrix of y coordinates pixels

z

matrix of z coordinates pixels

hold

sets the interpolation method for the resampling. 0 Zero-order hold (nearest neighbour). 1 First-order hold (trilinear interpolation). 2->127 Higher order Lagrange (polynomial) interpolation using different holds (second-order upwards). -127 - -1 Different orders of sinc interpolation.

Value

output image


jpellman/spmR documentation built on May 19, 2019, 10:44 p.m.