halcon中rank_region()算子用于实现区域的秩操作,算子接口如下: rank_region(Region : RegionCount : Width, Height, Number : ) 通俗点说,该算法实现这样的功能,Width和Height定义了一个掩膜窗口,遍历整个图像所有像素区域,统计掩膜窗口内属于区域Region的像素点数目N,如果N大于等于设置的阈值Number,则接受该像素点...
stop ()*用梯度图寻找缺陷threshold (CurlGradient, Region,0,0.01) rank_region (Region, RegionCount,10,10,30)//归类区域connection (RegionCount, ConnectedRegions) select_shape (ConnectedRegions, SelectedRegions,'area','and',2000,99999) union1 (SelectedRegions, RegionUnion) rank_region (RegionUnion,...
rank_region(Region : RegionCount : Width, Height, Number : ) Descriptionrank_region calculates the binary rank operator. A filter mask of size Height x Width) is used. In the process, for each point in the region the number of points of Region lying within the filter mask are counted. ...
rank_region (Region, RegionCount, 10, 10, 30)//归类区域 connection (RegionCount, ConnectedRegions) select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 2000, 99999) union1 (SelectedRegions, RegionUnion) rank_region (RegionUnion, RegionCount1, 25, 25, 170) connection (RegionCount...
rank_region()(归类区域) shape_trans()(改变区域形状) skeleton()(计算区域框架) 可被替换函数: class_2dim_sup()(采用二维空间像素分类分割图像) hysteresis_threshold()(磁滞门限操作) dyn_threshold()(局域阀值分割图像) bin_threshold()(自动产生的阀值分割图像) ...
动手实现halcon中的rank_region()算法 百哥 注:致力于实现halcon算子,欢迎交流,转载需注明出处。halcon中rank_region()算子用于实现区域的秩操作,算子接口如下: rank_region(Region : RegionCoun… 讨论量 199 知乎隐私保护指引申请开通机构号联系我们 举报中心 ...
select_shape_proto(特定关系选择区域),select_gray(灰度值特征选择区域),clip_region(裁剪区域为),sort_region(区域排序),skeleton(计算区域的骨架),partition_dynamic(动态分区),rank_region(区域等级) 特征提取 基础: area_center(中心区域),smallest_rectangle1(平行坐标轴的最小矩形),samlllest_rectangle2(任意方...
接下来,我们需要调用“rank_region”命令实现相邻灰度处理,该命令需要指定一个区域,计算所选区域内灰度值的统计信息。具体实现步骤如下: gen_circle (Circle, 230, 60, 50) threshold (image_gray, Region, 100, 255) rank_region (image_gray, Gray, Region, Circle, 'mean', 13) 上述代码中,我们首先定义...
058窗口生成一个点:gen_region_points 6、保存区域和读取区域 059保存区域:write_region 060读取区域:read_region 7、空对象处理 061生成一个空得区域对象:gen_empty_rengion(只能填入一个对象) 062生成一个空得对象:gen_empty_obj(可以填入多个对象) ...
HALCON算子函数整理13-14 Object-Region HALCON算子函数——Chapter 13 : Object 13.1 Information 1. count_obj 功能:统计一个元组中的对象。2. get_channel_info 功能:一幅目标图像组成部分的信息。3. get_obj_class 功能:一副目标图像类的名称。4.test_equal_obj 功能:比较目标图像的平等性。5. test_...