【halcon】轮廓拟合相关算子 | 您所在的位置:网站首页 › halcon轮廓连接 › 【halcon】轮廓拟合相关算子 |
涉及函数
edges_sub_pix
寻找边缘 edges_sub_pix (Image, Edges, 'canny', 1, 10, 20) 后面三个参数,越小,找到的细节越多。这个是对应录波器为'canny'时。 'canny'滤波器用的最多。 segment_contours_xld将连续的轮廓进行分段,按圆弧或者执行分段 segment_contours_xld (Edges, ContoursSplit, 'lines_circles', 5, 4, 3) 经过这个函数之后,就不会存在直线和圆弧的其他种类的线条。比如折线就不存在了! 折线会被打断成两条直线。 select_contours_xld对轮廓的某个特征进行筛选: select_contours_xld (ContoursSplit, SelectedContours, 'contour_length', 120, 300000, -0.5, 0.5) union_adjacent_contours_xld将相近的轮廓合并成一个轮廓。 union_adjacent_contours_xld (SelectedContours, UnionContours, 100, 1, 'attr_keep') 参数中的100表示只要距离相近100以内就连起来。 fit_circle_contour_xld将轮廓拟合成圆弧 fit_circle_contour_xld (ObjectSelected, 'ahuber', -1, 2, |
CopyRight 2018-2019 实验室设备网 版权所有 |