Aliasing problem when rotating image

Hi I’m trying to knows the angle to rotate the nut with a robotics arm in a know position.
So I rotate the image until black pixel fill a roi area in top-btn or left-right, the thing works but the aliasing false the pixel counting. I zommed the image to factor 2 to have more pixel.
The odd thing for me is that the aliasing increase after every rotation step.

imgTest5

There is a some antialiasing function or procedure to reduce this problem?

Many thanks

Lenny

I have plans to update the rotation code later this year. However, I’ve been busy with my persona life and have been unable to work on OpenMV. Anyway, there’s no a solution right now.

So, there’s no fix for this. You shouldn’t repeatedly rotate the image. This is not a good technique. It’s needlessly computationally expensive.