[−][src]Function opencv::imgproc::get_rotation_matrix_2d
pub fn get_rotation_matrix_2d(
center: Point2f,
angle: f64,
scale: f64
) -> Result<Mat>
Calculates an affine matrix of 2D rotation.
The function calculates the following matrix:
where
The transformation maps the rotation center to itself. If this is not the target, adjust the shift.
Parameters
- center: Center of the rotation in the source image.
- angle: Rotation angle in degrees. Positive values mean counter-clockwise rotation (the coordinate origin is assumed to be the top-left corner).
- scale: Isotropic scale factor.
See also
getAffineTransform, warpAffine, transform