Specifications

GeometricTransforms
11-13
11
iplRotateCenter
Thisfunction-likemacroallowsto
rotateanimagearoundthegiven
center.
iplRotateCenter(
srcImage, dstImage, angle, xCenter
,
yCenter
,
interpolate
);
srcImage
Thesourceimage.
dstImage
Thedestinationimage.
angle
Theangle(indegrees)torotatetheimage
aroundthepointwithcoordinates
(
xCenter
,
yCenter
).
xCenter
,
yCenter
Coordinates of the center of rotation.
interpolate
Thetypeofinterpolationtoperformfor
resamplingtheinputimage.Thefollowing
modesaresupported:
IPL_INTER_NN Nearestneighbor.
IPL_INTER_LINEAR Linearinterpolation.
IPL_INTER_CUBIC Cubicinterpolation.
+IPL_SMOOTH_EDGE Smoothedgesofanimage.
Canbeaddedto
interpolationbyusing
bitwiselogicalOR.
Discussion
UsethemacroiplRotateCentertorotateanimagearoundanarbitrary
center.Therotationcentercoordinates(
xCenter
,
yCenter
) are passed
asarguments,andthecalltotheauxiliaryfunctionthatrecomputesthe
shiftsishidden.