halcon select_shape_xld参数 在Halcon图像处理库中,`select_shape_xld`函数用于选择形状特征进行匹配。该函数的参数包括: 1. `ShapeModel`:形状模型的名称或句柄。形状模型可以是预先训练好的模型,也可以是通过其他Halcon函数创建的自定义模型。 2. `ShapeDescription`:形状描述的名称或句柄。形状描述可以是预先定义...
select_shape_xld (Edges, SelectedXLD,'area','and',5500,5600)*根据形状特征选择轮廓*参数1:轮廓集*参数2:选中的轮廓*参数3:形状特征*'area': 轮廓的面积---默认*'area_points': 轮廓点的面积*'row': 中心的行索引*'column': 中心的列索引*'width': 轮廓的宽度*'height': 轮廓的高度*'ratio': 轮...
*亚像素边缘 select_shape_xld (Edges, SelectedXLD, 'area', 'and', 5500, 5600) *根据形状特征选择轮廓 *参数1:轮廓集 *参数2:选中的轮廓 *参数3:形状特征 * 'area': 轮廓的面积---默认 * 'area_points': 轮廓点的面积 * 'row': 中心的行索引 * 'column': 中心的列索引 * 'width': 轮廓的...
* 选择轮廓 select_shape_xld (ContoursSplit, SelectedXLD, 'contlength', 'and', 0, 31) 1. 2.
Region 或 xld 筛选 。 答:Halcon提供了丰富的region 和xld筛选方法。Region可以使用select_shape_xld,选择出符合要求的区域,如果 不能满足还可以通过 类似 region feature 这样关键字组合成的算子获取区域特征,然后通过 tuple 排序或相加减,再通过 tuple_find 确定是对应哪个区域的特征。同样的halcon也提供了 select...
基础特征:XLD面积、中心、宽高、左上角与右下角坐标 形状特征:圆度、紧密度、长度、矩形度、凸性、偏心率等 云点特征:云点面积、面积、等效椭圆半轴等 几何矩特征:二阶距等 选取特定特征的XLD轮廓 常用算子有select_shape_xld和select_contours_xld
简介:Halcon之select_shape_xld是支持多个参数过滤的 例如: select_shape_xld (Edges, SelectedXLD, ['compactness','contlength'], 'and', [1,30], [5,200]) select_shape_xld (Contours, SelectedXLD, ['width', 'height'], 'and', [400, 40], [99999, 99999]) ...
1.提取采集图像的XLD 算子:threshold_sub_pix,edges_sub_pix 2.根据形状特征选择出有效的XLD 算子:select_shape_xld 3.分割XLD 算子:segment_contours_xld 例如:segment_contours_xld (SelectedXLD, ContoursSplit, 'lines_circles', 6, 4, 4) 4.计算XLD的回归直线 ...
select_shape_xld(XLD:SelectedXLD:Feature.Operation,Min,Max:) select_contours_xld(Contours:SelectedContours:Feature,Min1,Max1,Min2,Max2:) 参考例程:select_shape_xld.hdev 计算XLD的面积和中心位置: area_center_xld(XLD:::Area,Row,Column,PointOrder)...
三 图型变量XLD(eXtended Line Descriptions) XLD代表亚像素级别的轮廓或者多边形 threshold_sub_pix(inputimage, output,requirement) gen_contour_region_xld(inputRegion,output,...) XLD的选择操作(select_shape_xld/selet_contours_xld): select_shape_xld(XLDFeatures,Operation,Min,Max:) ...