VIA - Volumetric Image Analysis
Functions
Spline.c File Reference

Functions

VImage VCubicSplineSample3d (VImage src, VImage dest, VImage transform, float b0, float r0, float c0, int dest_nbands, int dest_nrows, int dest_ncolumns)
 Resample a 3D image using trilinear interpolation.
VImage VCubicSplineScale3d (VImage src, VImage dest, int dest_nbands, int dest_nrows, int dest_ncols, float shift[3], float scale[3])
 3D scaling using cubic spline interpolation

Detailed Description

Geometric transformations using cubic spline interpolation.

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

Authors:
A.Hagert hager.nosp@m.t@cn.nosp@m.s.mpg.nosp@m..de, 07.01.2003, G.Lohmann, MPI-CBS

Function Documentation

VImage VCubicSplineSample3d ( 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 trilinear interpolation.

Parameters
srcinput image (any repn)
destoutput image (any repn)
transform4x3 transformation image (float 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
VImage VCubicSplineScale3d ( VImage  src,
VImage  dest,
int  dest_nbands,
int  dest_nrows,
int  dest_ncols,
float  shift[3],
float  scale[3] 
)

3D scaling using cubic spline interpolation

Parameters
srcinput image (any repn)
destoutput image (any repn)
dest_nbandsnumber of output slices
dest_nrowsnumber of output rows
dest_ncolsnumber of output columns
shift[3]translation vector (band,row,column)
scale[3]scaling vector (band,row,column)