Interpolation function
#include "dip_interpolation.h"
dip_Error dip_Rotation ( in, out, angle, method, bgval )
binary, integer, float
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.
| Data type | Name | Description |
| dip_Image | in | Input image |
| dip_Image | out | Output image |
| dip_float | angle (radians) | Rotation angle |
| dipf_Interpolation | method | Interpolation method |
| dip_BackgroundValue | bgval | Background value |
The enumerator dip_FilterShape contains the following constants:
| Name | Description |
| DIP_FLT_SHAPE_DEFAULT | default structuring element, same as DIP_FLT_SHAPE_RECTANGULAR |
| DIP_FLT_SHAPE_RECTANGULAR | rectangular structuring element |
| DIP_FLT_SHAPE_ELLIPTIC | elliptic structuring element |
| DIP_FLT_SHAPE_DIAMOND | diamond shaped structuring element |
| DIP_FLT_SHAPE_PARABOLIC | parabolic structuring element |
| DIP_FLT_SHAPE_STRUCTURING_ELEMENT | use se as structuring element |
The dip_BackgroundValue enumaration consists of the following flags:
| Name | Description |
| DIP_BGV_DEFAULT | Default: fill with zeros |
| DIP_BGV_ZERO | Fill with zeros |
| DIP_BGV_MAX_VALUE | Fill with maximum value for data type |
| DIP_BGV_MIN_VALUE | Fill with minimum value for data type |
This function is only implemented for 2D images.
DIPlib on-line documentation | Function reference | Global function index