79758576

Date: 2025-09-08 06:38:47
Score: 1
Natty:
Report link

It sounds like you’re after something like the classic 'shearing rotation' algorithm. Shearing is also called skewing. For a rotation of n degrees:

  1. Skew the image to the right by n degrees and use nearest neighbour sampling.
  2. Now skew it down by n degrees, using nearest neighbour sampling again.
  3. Repeat step 1.

This method will produce artefacts that look like frosted glass; and repeatedly rotating an already-rotated image will only worsen the artefacts, so you should always start with the un-rotated source image. You can read more at the links below: https://silmon.github.io/arbitrary-image-rotation-using-shearing.html https://quuxplusone.github.io/blog/2021/11/26/shear-rotation/

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ichordev