4

Can anyone suggest me how to rotate an image by 90 degrees? any implemented function in opencv?

i think transpose of an image is totally different from 90 degree rotation (both clockwise and anti-clockwise)

Varo
  • 831
  • 1
  • 7
  • 16

1 Answers1

6

It's not the most efficient way, but it's so easy

cv::transpose(img, res);

cv::flip(res, res, 1);

tenta4
  • 304
  • 2
  • 16