Specifications
Intel
®
Image Processing Library Reference Manual
11-14
11
Example 11-3 Using Macro Definition to Rotate an Image
int RotateCenter( void ) {
IplImage *imga = iplCreateImageJaehne(IPL_DEPTH_8U, 5, 5);
IplImage *imgb = iplCloneImage( imga );
IPLStatus st;
// Rotate by 45 about point(2,2)
iplRotateCenter( imga, imgb, 45, 2, 2, IPL_INTER_NN );
st = iplGetErrStatus();
iplDeallocate( imga, IPL_IMAGE_ALL );
iplDeallocate( imgb, IPL_IMAGE_ALL );
return IPL_StsOk == st;
}
Mirror
Mirrors an image about a
horizontal or vertical axis.
void iplMirror(IplImage*
srcImage
, IplImage*
dstImage
,
int
flipAxis
);
srcImage
Thesourceimage.
dstImage
The resultant image.
flipAxis
Specifies the axis to mirror the image.
Use the following values to specify the axes:
0 for the horizontal axis, 1 for the vertical axis,
-1 for both horizontal and vertical axes.
Discussion
The function iplMirror() mirrors or flips the source image
srcImage
about a horizontal or vertical axis or both.