-
Utilize Matrix transformation.
-
The column vector of a matrix is (x, y, 1).
-
You can create a transformation matrix using functions like cv2.getRotationMatrix2D().
- Then, apply it to cv2.warpAffine().
-
https://imagingsolution.blog.fc2.com/blog-entry-86.html