VIA - Volumetric Image Analysis
Functions
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. More...
 

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
srcinput image (any repn)
destoutput image (any repn)
transform3x2 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.
r0row address that remains fixed
c0column address that remains fixed
dst_nrowsnumber of output rows
dst_ncolumnsnumber of output columns