Start » Filter Reference » OpenCV » Geometric Image Transformations » cvGetRotationMatrix2D
Module: | OpenCV |
---|
Calculates the affine matrix of 2D rotation.
Applications
Prepares matrix to be used with cvWarpAffine.
Name | Type | Description | |
---|---|---|---|
inCenter | Point2D | Center of the rotation in the source image. | |
inAngle | Real | Rotation angle in degrees. Positive values mean counter-clockwise rotation. The coordinate origin is assumed to be the top-left corner. | |
inScale | Real | Isotropic scale factor. | |
outM | Matrix | The output affine transformation, 2x3 floating-point matrix. |
Description
The operation calculates matrix of rotation described on input. Rotation matrix can be applied to image using cvWarpAffine filter.
Examples
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- cvWarpAffine – Applies an affine transformation to an image.
- cvGetAffineTransform – Calculates the affine transform from 3 corresponding points.
- cvGetPerspectiveTransform – Calculates the perspective transform from four pairs of corresponding points.