【OpenCV教程】轮廓检测过程
1.查找轮廓
1.1 API
CV_EXPORTS_W void findContours( InputArray image, OutputArrayOfArrays contours,
OutputArray hierarchy, int mode,
int method, Point offset = Point());
/** @overload */
CV_EXPORTS void findContours( InputArray image, OutputArrayOfArrays contours,
int mode, int method, Point offset = Point());参数
含义
1.2 轮廓层级检测模式:索引号(层级)




1.3 轮廓坐标点储存方式
method可选值
含义
2.绘制轮廓
2.1 API
参数
含义
maxLevel可选值
含义
3.轮廓面积和周长
3.1 面积(非原地算法)
参数
含义
3.2周长(非原地算法)
参数
含义
4.多边形逼近
参数
含义
5.凸包
参数
含义
6.外接矩形
6.1最小外接矩形(返回RotatedRect)
参数
含义
6.2最大外界矩形(返回Rect)
参数
含义
最后更新于