0
$\begingroup$

If I have an image that is being rotated using OpenCV in python, about its centre, How do I mathematically calculate the pixel values after each rotation?

A python code for this operation would be appreciated. Thanks!

$\endgroup$
3
  • $\begingroup$ a bit off topic in my opinion. If the rotation is by angle of 90° I would start with np.rot90. $\endgroup$ Commented Aug 11, 2022 at 7:25
  • $\begingroup$ Yes, but I am rotating the image in increments of 0.01 degrees. How do I mathematically calculate the pixel values without actually rotating the image and checking it each time? $\endgroup$
    – giantjenga
    Commented Aug 11, 2022 at 12:45
  • $\begingroup$ seems like to have to do some basic trigonometry ... $\endgroup$ Commented Aug 11, 2022 at 13:36

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.