cv.getRotationMatrix2D - MATLAB File Help |
Calculates an affine matrix of 2D rotation
M = cv.getRotationMatrix2D(center, angle, scale)
[x,y]
.The function calculates the following matrix:
[ a, b, (1-a)*center(1) - b*center(2) ;
-b, a, b*center(1) + (1-a)*center(2) ]
where:
a = scale * cos(angle)
b = scale * sin(angle)
The transformation maps the rotation center to itself. If this is not the target, adjust the shift.