(一)知识点
①轮廓的概念
②基于边界跟随的算法
③轮廓发现
④API
(二)API
①基本数据类型(vec4i、size_t)(16条消息) OpenCV基本数据类型_merlin_q的专栏-优快云博客_vec4i是什么数据类型
(16条消息) size_t数据类型_流年的博客-优快云博客_size_t类型怎么用
②findContours()
void findContours( InputArray image, OutputArrayOfArrays contours,
int mode, int method, Point offset = Point());
void findContours( InputArray image, OutputArrayOfArrays contours,
OutputArray hierarchy, int mode,
int method, Point offset = Point());
(hierarchy为可选参数 )
参数解释
(16条消息) opencv 之 findcontours() 函数详解_yongxian_zhao的博客-优快云博客_findcontours
③drawContours()
void drawContours( InputOutputArray image, InputArrayOfArrays contours,
int contourIdx, const Scalar& color,
int thickness = 1, int lineType = LINE_8,
InputArray hierarchy = noArray(),
int maxLevel = INT_MAX, Point offset = Point() );
参考(16条消息) OPENCV轮廓提取findContours和drawContours_maomao1011120756的专栏-优快云博客_drawcontours
(三)代码演示