Halcon算子edges_sub_pix (Operator)翻译整理详解

Halcon算子edges_sub_pix (Operator)翻译整理详解

edges_sub_pix (Operator)
Name
edges_sub_pix — Extract sub-pixel precise edges using Deriche, Lanser, Shen, or Canny filters.
Signature
edges_sub_pix(Image : Edges : Filter, Alpha, Low, High : )

Description
edges_sub_pix detects step edges using recursively implemented filters (according to Deriche, Lanser and Shen) or the conventionally implemented “derivative of Gaussian” filter (using filter masks) proposed by Canny. Thus, the following edge operators are available:
描述
edge_sub_pix使用递归实现的滤波器(根据Deriche,Lanser和Shen)或Canny提出的传统实现的“高斯导数”滤波器(使用滤波器)检测台阶边缘。因此,可以使用以下边缘运算符:

‘deriche1’, ‘lanser1’, ‘deriche2’, ‘lanser2’, ‘shen’, ‘mshen’, ‘canny’, ‘sobel’, and ‘sobel_fast’

(parameter Filter).

The extracted edges are returned as sub-pixel precise XLD contours in Edges. For all edge operators except ‘sobel_fast’, the following attributes are defined for each edge point (see get_contour_attrib_xld for further details):
提取的边缘作为“边缘”中的亚像素精确XLD轮廓返回。对于除“ sobel_fast”以外的所有边缘运算符,为每个边缘点定义了以下属性(有关更多详细信息,请参见get_contour_attrib_xld):

‘edge_direction’:
Gives the direction of the edge (not of the XLD contour), calculated from the image gradients in horizontal and vertical direction. The angles [rad] are given with respect to the column axis of the image.
给出边缘的方向(不是XLD轮廓),该方向是根据

  • 1
    点赞
  • 15
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
`edges_sub_pix()`是Halcon中的一个算子,用于对图像进行亚像素级别的边缘检测。该算子会根据指定的边缘算法在图像中检测出边缘,并精确定位边缘的位置,从而获得亚像素级别的边缘信息。 `edges_sub_pix()`算子的语法如下: ``` edges_sub_pix(Image : Edges, EdgesAmplitude, EdgesDirection, EdgesRow, EdgesColumn, MaxNumEdges, DetectionMode, Sigma, Threshold, Transition, EdgeWidth, Interpolation, SubPixel, PointsPerPixel, GenParamName, GenParamValue) ``` 其中,`Image`为输入的图像,`Edges`为输出的边缘信息,`EdgesAmplitude`为输出的边缘幅度信息,`EdgesDirection`为输出的边缘方向信息,`EdgesRow`和`EdgesColumn`为输出的边缘位置信息,`MaxNumEdges`为最大边缘数量,`DetectionMode`为边缘检测模式,`Sigma`为高斯滤波器的标准差,`Threshold`为边缘幅度的阈值,`Transition`为边缘的极性(上升沿/下降沿),`EdgeWidth`为边缘宽度,`Interpolation`为插值方式,`SubPixel`为是否计算亚像素级别的边缘位置,`PointsPerPixel`为每个像素点的采样点数,`GenParamName`和`GenParamValue`为其他参数。 例如,对一个灰度图像进行Canny边缘检测并计算亚像素级别的边缘位置: ``` read_image(Image, 'test.jpg') edges_sub_pix(Image, Edges, EdgesAmplitude, EdgesDirection, EdgesRow, EdgesColumn, 100, 'canny', 1.0, 20, 'positive', 3, 'bilinear', 'true', 1, [], []) ``` 这里,`MaxNumEdges`取100,表示最多检测100个边缘;`DetectionMode`取`'canny'`,表示使用Canny边缘检测算法;`Sigma`取1.0,表示高斯滤波器的标准差为1.0;`Threshold`取20,表示较低的边缘幅度阈值;`Transition`取`'positive'`,表示检测上升沿的边缘;`EdgeWidth`取3,表示边缘宽度为3个像素;`Interpolation`取`'bilinear'`,表示使用双线性插值计算边缘位置;`SubPixel`取`'true'`,表示计算亚像素级别的边缘位置;`PointsPerPixel`取1,表示每个像素点只采样一个点。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值