Ask Your Question

Revision history [back]

I suggest minAreaRect which gives you the smalles rotated rectangle that contains all given points. The result cv::RotatedRect has a member angle.