OpenCV中文网站

 找回密码
 立即注册
搜索
热搜: 安装 配置
查看: 4175|回复: 0

使用EmguCv查找目标轮廓时只找到一个目标就停止了

[复制链接]
发表于 2012-5-17 15:33:05 | 显示全部楼层 |阅读模式
使用Image<TColor,TDepth>类的FindContours方法。我先将彩色图像转换成灰度图像,然后再将灰度图像转换成二值图像Image<Gray, Byte> imageThreshold ,接下来Contour<oint> contour=imageThreshold.FindContours();时,只找到了右下角的一个目标的轮廓,是那部分出问题了?望高手指点。
还有如果使用CvInvoke.cvFindContours(IntPtr image, IntPtr storage, ref IntPtr firstContour, int headerSize, RETR_TYPE mode, CHAIN_APPROX_METHOD method, Point offset);函数,headerSize部分带入sizeof(CvContour)总是出错。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|OpenCV中文网站

GMT+8, 2024-4-28 09:28 , Processed in 0.008159 second(s), 16 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表