Functions | |
VImage | VBiLinearSample2d (VImage src, VImage dest, VImage transform, float r0, float c0, int dst_nrows, int dst_ncolumns) |
Resample a 2D image using bilinear interpolation. |
This file contains functions for bilinear resampling and 2D rotations. The transformation equation is:
y = A(x-x0) + b
where x,x0,b,y are 1x2 vectors and A is a 2x2 matrix. The vector x0 can be used to specify a position that remains unchanged by the transformation.
VImage VBiLinearSample2d | ( | VImage | src, | |
VImage | dest, | |||
VImage | transform, | |||
float | r0, | |||
float | c0, | |||
int | dst_nrows, | |||
int | dst_ncolumns | |||
) |
Resample a 2D image using bilinear interpolation.
src | input image (any repn) | |
dest | output image (any repn) | |
transform | 3x2 transformation image (float or double repn). The first column of <transform> contains the translation vector. The remaining three columns contains the 2x2 linear transformation matrix. | |
r0 | row address that remains fixed | |
c0 | column address that remains fixed | |
dst_nrows | number of output rows | |
dst_ncolumns | number of output columns |