Sample2d.c File Reference


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.

Detailed Description

Geometric transformations 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.

Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

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.

Parameters:
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


Generated on Thu Feb 16 21:10:38 2012 for VIA - Volumetric Image Analysis by  doxygen 1.5.6