GetRotateShift

Computes shift values for rotation of an image around the specified center.

Syntax

IppStatus ippiGetRotateShift (double xCenter, double yCenter, double angle, double* xShift, double* yShift);

Parameters

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).

Description

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.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsNullPtrErr

Indicates an error condition if xShift or yShift pointer is NULL.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.