QQ登录

只需一步,快速开始

工业视觉 halcon edges_sub_pix函数介绍

[ 复制链接 ]
edges_sub_pix(Image : Edges : Filter, Alpha, Low, High : )
edges_sub_pix使用递归实现的过滤器(根据Deriche、Lanser和Shen)或Canny提出的传统实现的“高斯导数”过滤器(使用过滤器掩码)检测阶跃型边缘。
因此,可以使用以下边缘操作符:'deriche1', 'lanser1', 'deriche2', 'lanser2', 'shen', 'mshen', 'canny', 'sobel', and 'sobel_fast'
提取的边缘作为亚像素级精确的XLD轮廓返回到Edges 中。
对于除'sobel_fast'之外的所有边缘操作符,为每个边缘点定义了以下属性(参见get_contour_attrib_xld):
edge_direction 边方向
angle 法向量到轮廓线的方向(法向量指向轮廓线的右侧,使轮廓线从起点经过终点;角度是相对于图像的行轴给出的。)
response 边缘振幅(梯度大小)


参数:
Image 输入的图像
Edges 输出的边缘
Filter 要应用的边缘算子。
Alpha 滤波参数:数值越小,平滑效果越好,因此细节越少(与canny相反)。
Low,High迟滞阈值分割的低高阈值,有真他妈的多'canny', 'canny_junctions', 'deriche1', 'deriche1_junctions', 'deriche2', 'deriche2_junctions', 'lanser1', 'lanser1_junctions', 'lanser2', 'lanser2_junctions', 'mshen', 'mshen_junctions', 'shen', 'shen_junctions', 'sobel', 'sobel_fast', 'sobel_junctions'
例程:
read_image(Image,'fabrik')
edges_sub_pix(Image,Edges,'lanser2',0.5,20,40)














回复

使用道具 举报

大神点评(1)

点击查看
快速回复 返回列表 客服中心 搜索