定义:
CV_EXPORTS_W RotatedRect
minAreaRect( InputArray points
);
例程:
mat input
=img
.clone()
vector
<vector
<Point
> > contours
;
vector
<Vec4i
> hierarchy
;
findContours(input
, contours
, hierarchy
, RETR_CCOMP
, CHAIN_APPROX_SIMPLE
);
RotatedRect r
= minAreaRect(contours
[i
]);
参考博文:
https://blog.csdn.net/u011028345/article/details/75354953
转载请注明原文地址:https://blackberry.8miu.com/read-635.html