Reputation: 851
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
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