1 Halcon 算子 select_shape
select_shape (Operator)
Name
select_shape — Choose regions with the aid of shape features.
Signature
select_shape(Regions : SelectedRegions : Features, Operation, Min, Max : )
作用:借助形状特征选择区域;
参数:
Regions :输入区域、
SelectedRegions :输出满足条件的区域、
Features :输入参数形状特征('anisometry', 'area', 'area_holes', 'bulkiness'等)、
Operation :输入参数关系符('and', 'or')如果features只是用一种特性那么此参数没有意义、
Min :输入参数下限值(0.0 ≤ Min ≤ 99999.0)、
Max :输入参数上限值(Max >= Min 并且 0.0 ≤ Max ≤ 99999.0);
描述:
算子select_shape根据形状特征选择区域,对于输入的每个区域,将计算指定的特征根据参数(features)。如果每个(Operation = ‘and’)或至少一个(Operation = ‘or’)的计算特性在默认限制(Min,Max)内,该区域将被输出。
2 特征Features种类介绍
‘area’:区域的面积
‘row’:中心的行坐标
‘column’:中心的列坐标
‘width’:区域宽度(平行于坐标轴)
‘height’:区域的高度(平行于坐标轴)
‘row1’:区域左上角的行坐标
‘column1’:区域左上角的列坐标
‘row2’:区域右下角的行坐标
‘column2’:区域右下角的列坐标
‘circularity’:和圆的相似度(详细解释请看我的Halcon算子专栏中的解释circularity)
‘compactness’:密度(详细解释请看我的Halcon算子专栏中的解释compactness)
‘contlength’:轮廓的总长度
‘convexity’:凸度(详细解释请看我的Halcon算子专栏中的解释convexity)
‘rectangularity’:类矩形因子(详细解释请看我的Halcon算子专栏中的解释rectangularity)
‘ra’:主半径的等效椭圆(详细解释请看我的Halcon算子专栏中的解释 elliptic_axis)
‘rb’:次半径的等效椭圆(详细解释请看我的Halcon算子专栏中的解释 elliptic_axis)
‘phi’:和X轴的夹角(详细解释请看我的Halcon算子专栏中的解释 elliptic_axis)
'anisometry:'等距(详细解释请看我的Halcon算子专栏中的解释 eccentricity )
'bulkiness:'蓬松性(详细解释请看我的Halcon算子专栏中的解释 eccentricity )
'struct_factor:'结构因子(详细解释请看我的Halcon算子专栏中的解释 eccentricity )
‘outer_radius’:外接最小圆半径(详细解释请看我的Halcon算子专栏中的解释 smallest_circle )
‘inner_radius’:最大内接圆半径(详细解释请看我的Halcon算子专栏中的解释 inner_circle)
‘inner_width’:给定区域最大的轴平行矩形的宽度(详细解释请看我的Halcon算子专栏中的解释 inner_rectangle1)
‘inner_height’:给定区域最大的轴平行矩形的高度(详细解释请看我的Halcon算子专栏中的解释 inner_rectangle1)
‘dist_mean’:从区域边界到区域中心的平均距离(详细解释请看我的Halcon算子专栏中的解释roundness)
'dist_deviation:'从区域的边界各个点到区域中心的偏差(详细解释请看我的Halcon算子专栏中的解释roundness)
‘roundness’:圆度 (详细解释请看我的Halcon算子专栏中的解释roundness)
‘num_sides’:多边形边数(详细解释请看我的Halcon算子专栏中的解释roundness)
‘connect_num’:区域连接数量(详细解释请看我的Halcon算子专栏中的解释connect_and_holes)
‘holes_num’:区域孔洞数(详细解释请看我的Halcon算子专栏中的解释connect_and_holes)
‘area_holes’:区域孔洞的面接(详细解释请看我的Halcon算子专栏中的解释area_holes)
‘max_diameter’:区域的最大直径(详细解释请看我的Halcon算子专栏中的解释diameter_region)
‘orientation’:区域的方向(详细解释请看我的Halcon算子专栏中的解释orientation_region)
‘euler_number’:欧拉数(详细解释请看我的Halcon算子专栏中的解释euler_number)
‘rect2_phi’:最小外接矩形角度(详细解释请看我的Halcon算子专栏中的解释smallest_rectangle2)
‘rect2_len1’:最小外接区域长度的一般(详细解释请看我的Halcon算子专栏中的解释smallest_rectangle2)
‘rect2_len2’:最小外接区域宽度的一般(详细解释请看我的Halcon算子专栏中的解释smallest_rectangle2)
‘moments_m11’:区域的几何矩m11(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd)
‘moments_m20’:区域的几何矩m20(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd)
‘moments_m02’:区域的几何矩m02(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd)
‘moments_ia’:区域的几何矩ia(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd)
‘moments_ib’:区域的几何矩ib(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd)
‘moments_m11_invar’:区域的几何矩m11(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd_invar)
‘moments_m20_invar’:区域的几何矩m20(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd_invar)
‘moments_m02_invar’:区域的几何矩m02(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd_invar)
‘moments_phi1’:区域的几何矩phi1(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd_rel_invar)
‘moments_phi2’:区域的几何矩phi2(详细解释请看我的Halcon算子专栏中的解释moments_region_2nd_rel_invar)
‘moments_m21’:区域的几何矩m21(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd)
‘moments_m12’:区域的几何矩m12(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd)
‘moments_m03’:区域的几何矩m03(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd)
‘moments_m30’:区域的几何矩m30(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd)
‘moments_m21_invar’:区域的几何矩m21(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd_invar)
‘moments_m12_invar’:区域的几何矩m12(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd_invar)
‘moments_m03_invar’:区域的几何矩m03(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd_invar)
‘moments_m30_invar’:区域的几何矩m30(详细解释请看我的Halcon算子专栏中的解释moments_region_3rd_invar)
‘moments_i1’:区域的几何矩i1(详细解释请看我的Halcon算子专栏中的解释moments_region_central)
‘moments_i2’:区域的几何矩i2(详细解释请看我的Halcon算子专栏中的解释moments_region_central)
‘moments_i3’:区域的几何矩i3(详细解释请看我的Halcon算子专栏中的解释moments_region_central)
‘moments_i4’:区域的几何矩i4(详细解释请看我的Halcon算子专栏中的解释moments_region_central)
‘moments_psi1’:区域的几何矩psi1(详细解释请看我的Halcon算子专栏中的解释moments_region_central_invar)
‘moments_psi2’:区域的几何矩psi2(详细解释请看我的Halcon算子专栏中的解释moments_region_central_invar)
‘moments_psi3’:区域的几何矩psi3(详细解释请看我的Halcon算子专栏中的解释moments_region_central_invar)
‘moments_psi4’:区域的几何矩psi4(详细解释请看我的Halcon算子专栏中的解释moments_region_central_invar)