Computes shift values for rotation of an image around the specified center.
IppStatus ippiGetRotateShift (double xCenter, double yCenter, double angle, double* xShift, double* yShift);
xCenter, yCenter |
Coordinates of the required center of rotation. |
angle |
The angle in degrees to rotate the image clockwise around the point with coordinates (xCenter, yCenter). |
xShift, yShift |
Pointers to computed shift values along horizontal and vertical axes. These shift values should be passed to ippiRotate function to bring about the desired rotation around (xCenter, yCenter). |
The function ippiGetRotateShift is declared in the ippi.h file. Use this function if you need to rotate an image about an arbitrary center (xCenter, yCenter) rather than the origin (0,0). The function helps compute shift values xShift, yShift that should be passed to ippiRotate function for the rotation around (xCenter, yCenter) to take place.
Example “Using Intel IPP Functions for Image Rotation” shows how to use the function ippiGetRotateShift.
ippStsNoErr |
Indicates no error. Any other value indicates an error. |
ippStsNullPtrErr |
Indicates an error condition if xShift or yShift pointer is NULL. |
Copyright © 2000 - 2011, Intel Corporation. All rights reserved.