Specifications

Intel
®
Image Processing Library Reference Manual
11-10
11
dstImage
The resultant image.
angle
The angle (in degrees) to rotate the image.
The image is rotated around the corner with
coordinates (0,0).
xShift
,
yShift
The shifts along the x-andy-axes to be
performed after the rotation.
interpolate
The type of interpolation to perform for
resampling the source image. The following
modes are supported:
IPL_INTER_NN Nearest neighbor.
IPL_INTER_LINEAR Linear interpolation.
IPL_INTER_CUBIC Cubic interpolation.
+IPL_SMOOTH_EDGE Smooth edges of an image.
Can be added to interpolation
by using bitwise logical OR
(see Appendix B for details).
Discussion
The function iplRotate() rotates the source image
srcImage
by
angle
degrees around the origin (0,0) and shifts it by
xShift
and
yShift
along
the x-andy-axis, respectively. The interpolation specified by
interpolate
is used for resampling the input image.
If you need to rotate the image around an arbitrary center (
xCenter
,
yCenter
) rather than the origin (0,0), you can compute
xShift
and
yShift
using the function iplGetRotateShift and then call
iplRotate(). Alternatively, you can use the iplRotateCenter macro
definition.