DIPlib Documentation - ©1995-2008 Quantitative Imaging Group, Delft University of Technology.

Resampling

Interpolation function

SYNOPSIS

#include "dip_interpolation.h"

dip_Error dip_Resampling ( in, out, zoom, shift, method )

DATA TYPES

binary, integer, float

FUNCTION

This function resmaples the input image in to out using various interpolation methods. Both a (subpixel) shift and a zoom factor are supported. The size of the output image is zoom times the size of in. If shift is zero, a shift of zero is assumed. If zoom is zero, a zoom of 1.0 is assumed.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutOutput image
dip_FloatArrayzoomZoom factor
dip_FloatArrayshiftShift
dipf_InterpolationmethodInterpolation method

The dipf_Interpolation enumaration consists of the following constants:

NameDescription
DIP_INTERPOLATION_DEFAULTDefault interpolation method
DIP_INTERPOLATION_BSPLINEB-Spline interpolation
DIP_INTERPOLATION_FOURTH_ORDER_CUBICForth order cubic interpolation
DIP_INTERPOLATION_THIRD_ORDER_CUBICThird order cubic interpolation
DIP_INTERPOLATION_LINEARLinear interpolation
DIP_INTERPOLATION_ZERO_ORDER_HOLDZero order hold interpolation

SEE ALSO

Subsampling

DIPlib on-line documentation | Function reference | Global function index