NNSample3d.c File Reference

Functions

VImage VNNSample3d (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 nearest neighbour interpolation.

Detailed Description

Geometric transformations using nearest neighbour interpolation.

This file contains functions for resampling and 3D rotations. 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.

Author:
Gabriele Lohmann, MPI-CBS

Function Documentation

VImage VNNSample3d ( 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 nearest neighbour interpolation.

Parameters:
src input image (any repn)
dest output image (any repn)
transform 4x3 transformation image (float or double 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
Generated on Thu Feb 16 22:17:41 2012 for VIA - Volumetric Image Analysis by  doxygen 1.6.3