dp = 1:原图;dp=2:小一半的图
param2选30-50,超过这个值
OpenCV中的霍夫变换圆检测函数 cv::HoughCircles:
它整合了Canny检测和霍夫变换,输出是cv::Vec3f向量,每个元素包含检测圆的圆心坐标和半径(cx, cy, radius)。
如果噪声不是椒盐噪声就可以不用median blur,可以用gaussian blur等等
hough circles参数
1:dp
(5)10:min_dist: Minimum distance between detected centers
(6)100:Upper threshold for the internal Canny edge detector
(7)30:Threshold for center detection
(8)5:min radius
(9)50:max radius
转载于:https://www.cnblogs.com/ecoflex/p/10842282.html
最后
以上就是英俊世界最近收集整理的关于[CV] OpenCV图像处理教程- 22:Hough circle transformation的全部内容,更多相关[CV]内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复