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

Rotation

Interpolation function

SYNOPSIS

#include "dip_interpolation.h"

dip_Error dip_Rotation ( in, out, angle, method, bgval )

DATA TYPES

binary, integer, float

FUNCTION

This function rotates an 2-D image in over angle to out using three skews. The function implements the rotation in the mathmetical sense, but note the Y-axis is positive downwards! The rotation is over the centre of the image.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutOutput image
dip_floatangle (radians)Rotation angle
dipf_InterpolationmethodInterpolation method
dip_BackgroundValuebgvalBackground value

The enumerator dip_FilterShape contains the following constants:

NameDescription
DIP_FLT_SHAPE_DEFAULTdefault structuring element, same as DIP_FLT_SHAPE_RECTANGULAR
DIP_FLT_SHAPE_RECTANGULARrectangular structuring element
DIP_FLT_SHAPE_ELLIPTICelliptic structuring element
DIP_FLT_SHAPE_DIAMONDdiamond shaped structuring element
DIP_FLT_SHAPE_PARABOLICparabolic structuring element
DIP_FLT_SHAPE_STRUCTURING_ELEMENTuse se as structuring element

The dip_BackgroundValue enumaration consists of the following flags:

NameDescription
DIP_BGV_DEFAULTDefault: fill with zeros
DIP_BGV_ZEROFill with zeros
DIP_BGV_MAX_VALUEFill with maximum value for data type
DIP_BGV_MIN_VALUEFill with minimum value for data type

KNOWN BUGS

This function is only implemented for 2D images.

SEE ALSO

Skewing

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