P32图像轮廓发现

(一)知识点

①轮廓的概念

②基于边界跟随的算法

③轮廓发现

④API

(二)API

①基本数据类型(vec4i、size_t)(16条消息) OpenCV基本数据类型_merlin_q的专栏-CSDN博客_vec4i是什么数据类型

(16条消息) size_t数据类型_流年的博客-CSDN博客_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的博客-CSDN博客_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的专栏-CSDN博客_drawcontours

(三)代码演示

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值