HALCON学习之select_shape的Feature详解

本文详细介绍了HALCON中select_shape函数所涉及的各种特征,包括目标面积、中心位置、区域尺寸、圆度、紧凑度、轮廓长度等,以及与椭圆、圆形、矩形的相似度和各种几何矩等,旨在帮助理解并应用这些特征进行机器视觉分析。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   'area':

Area of the object

目标的面积

'row':

Row index of the center

中心行的索引

'column':

Column index of the center

中心列的索引

'width':

Width of the region

区域的宽度

'height':

Height of the region

区域的高度

'row1':

Row index of upper left corner

左上角的行索引

'column1':

Column index of upper left corner

左上角的列索引

'row2':

Row index of lower right corner

右下角的行索引

'column2':

Column index of lower right corner

右下角的列索引

'circularity':

Circularity (seecircularity)

圆度,与圆的相似程度,圆度=区域面积/((中心到区域边界的最大距离)^2*PI),其实就是利用区域面积和以最大距离作为半径的圆的面积做比较,越接近圆,这个比值就会越接近1,否则小于1。圆度对于大的凸起、孔洞和不相连的区域敏感。

'compactness':

Compactness (seecompactness)

紧凑度,紧凑度=轮廓的长度^2/(4*区域的面积*PI)。一个圆的紧凑度是1。如果区域是长条或有孔,则紧凑度大于1。紧凑度对粗糙度贺孔洞敏感。

'contlength':

Total length of contour (see operatorcontlength)

轮廓长度

'convexity':

Convexity (seeconvexity)

凸性,又称凸度,凸性=凸包面积/原区域面积,如果是矩形、圆,凸性为1,如果区域含有缺口或孔洞,凸性小于1

'rectangularity':

Rectangularity (seerectangularity)

矩形相似度,越接近矩形,就越接近1,否则小于1

'ra':

Main radius of the equivalent ellipse (seeelliptic_axis)

等效椭圆的主半径

'rb':

Secondary radius of the equivalent ellipse (seeelliptic_axis)

等效椭圆的副半径

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值