Functions | |
VImage | VCubicSplineSample3d (VImage src, VImage dest, VImage transform, float b0, float r0, float c0, int dest_nbands, int dest_nrows, int dest_ncolumns) |
Resample a 3D image using trilinear interpolation. | |
VImage | VCubicSplineScale3d (VImage src, VImage dest, int dest_nbands, int dest_nrows, int dest_ncols, float shift[3], float scale[3]) |
3D scaling using cubic spline interpolation |
This file contains functions for cubic spline resampling and 3D scaling. The transformation equation is:
y = A(x-x0) + b
where x,x0,b,y are 1x3 vectors and A is a 3x3 matrix. The vector x0 can be used to specify a position that remains unchanged by the transformation.
VImage VCubicSplineSample3d | ( | VImage | src, | |
VImage | dest, | |||
VImage | transform, | |||
float | b0, | |||
float | r0, | |||
float | c0, | |||
int | dst_nbands, | |||
int | dst_nrows, | |||
int | dst_ncolumns | |||
) |
Resample a 3D image using trilinear interpolation.
src | input image (any repn) | |
dest | output image (any repn) | |
transform | 4x3 transformation image (float repn). The first column of <transform> contains the translation vector. The remaining three columns contains the 3x3 linear transformation matrix. | |
b0 | slice address that remains fixed | |
r0 | row address that remains fixed | |
c0 | column address that remains fixed | |
dst_nbands | number of output slices | |
dst_nrows | number of output rows | |
dst_ncolumns | number of output columns |
VImage VCubicSplineScale3d | ( | VImage | src, | |
VImage | dest, | |||
int | dest_nbands, | |||
int | dest_nrows, | |||
int | dest_ncols, | |||
float | shift[3], | |||
float | scale[3] | |||
) |
3D scaling using cubic spline interpolation
src | input image (any repn) | |
dest | output image (any repn) | |
dest_nbands | number of output slices | |
dest_nrows | number of output rows | |
dest_ncols | number of output columns | |
shift[3] | translation vector (band,row,column) | |
scale[3] | scaling vector (band,row,column) |