Cirrus Logic CS485 Specifikace Strana 235

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 319
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 234
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.
Zobrazit stránku 234
1 2 ... 230 231 232 233 234 235 236 237 238 239 240 ... 318 319

Komentáře k této Příručce

Žádné komentáře