MATLAB File Help: cv.getRotationMatrix2D | Index |
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.