Varo
Varo

Reputation: 851

Image rotation(by 90 degress) in OpenCV

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)

Upvotes: 4

Views: 4559

Answers (1)

tenta4
tenta4

Reputation: 313

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

cv::transpose(img, res);

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

Upvotes: 6

Related Questions