VIA - Volumetric Image Analysis
Functions
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
srcinput image (any repn)
destoutput image (any repn)
transform4x3 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.
b0slice address that remains fixed
r0row address that remains fixed
c0column address that remains fixed
dst_nbandsnumber of output slices
dst_nrowsnumber of output rows
dst_ncolumnsnumber of output columns