Developer Reference for Intel® Integrated Performance Primitives 2018

GetRotateTransform

Computes the affine coefficients for the rotation transform.

Syntax

IppStatus ippiGetRotateTransform(double angle, double xShift, double yShift, double coeffs[2][3]);

Platform-aware functions

IppStatus ippiGetRotateTransform_L(double angle, double xShift, double yShift, double coeffs[2][3]);

Include Files

ippi.h

Flavors with the _L suffix: ippi_l.h

Domain Dependencies

Headers: ippcore.h, ippvm.h, ipps.h

Libraries: ippcore.lib, ippvm.lib, ipps.lib

Parameters

angle

Angle of rotation, in degrees. The source image is rotated counterclockwise around the origin (0, 0).

xShift, yShift

Shift along horizontal (x) or vertical (y) axis that is performed after rotation.

coeffs

Computed affine transform coefficients for the given rotation parameters.

Description

This function computes the coefficients for the affine transform that rotates an image by the specified angle around the origin (0, 0) and shifts the image after rotation. The result is stored in the coeffs parameter.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error.

ippStsSizeErr

Indicates an error when one of the coeffs values is NULL.

ippStsOutOfRangeErr

Indicates an error when angle is not-a-number (NaN) or infinity.

Example

GetRotateTransform.c