select_region_point和select_region_spatial 摘要:一、select_region_point select_region_point(Regions:DestRegions:row,column:) 算子含义:选择包含给定像素的所有区域。 Regions是待测试的Region集合,DestRegions是包含给定像素点的所有区域集合。 举例如下: 阅读全文 posted @ 2019-09-02 17:14 xh6300 阅读(...
connection (RegionDynThresh, ConnectedRegions) 现在的任务是仅选择六边形的晶体。为此,首先变成他们的凸包,这就像在每个区域周围都使用橡皮筋。在这些区域中,选择那些具有较大的(select_shape)并具有给定灰度值分布(select_gray)的对象。确定选择的参数,以便仅保留相关的晶体如下图。 复制代码 1 2 3 shape_trans (...
鼠标操作get_mbutton等待到用户用鼠标在图形窗口点击,然后返回坐标和按钮值。通过使用select_region_point,该坐标被用来选择包含该点的区域。对于该区域,用area_center来计算大小和重心。首先,文本光标用set_tposition放置,然后使用write_string显示值。 Button := 0 while (Button # 4) get_mbutton (WindowHandle, ...
select_region_point (Regions, DestRegions, Row, Column)选择包含指定点的区域 gen_contour_region_xld (SelectedRegions, Contours, 'border_holes')根据区域和指定的特征生成轮廓线。 dump_window_image (DumpImage, WindowHandle)将窗口的内容截图成图像 area_center_points_xld (ClipContours, Area, RowPoints,...
select_region_point (Regions, DestRegions, Row, Column)选择包含指定点的区域 gen_contour_region_xld (SelectedRegions, Contours, 'border_holes')根据区域和指定的特征生成轮廓线。 dump_window_image (DumpImage, WindowHandle)将窗口的内容截图成图像 area_center_points_xld (ClipContours, Area, RowPoints,...
191 select_contours_xld, 根据线的特征选择轮廓线。 192 select_gray,根据灰度值选择区域 193 select_obj,选择对象,Index 是指编号,从1开始计数 194 select_region_point, 选择包含指定点的区域 195 select_shape,选择带有某些特征的区域 196 select_shape_proto, 选出具有相似特征的所有区域 ...
11、ginal =go,threshold =gt( 这里指的就是 Mean)Light:go=gt_offsetDark:go=gt-offsetEqual:gt-offset=go=gt+offsetNo_equal:gogt+offset50.opening_circle(SmallRaw,Small,2.5)功能:对 SmallRaw 进行圆模板开运算51.connection(small,SmallConnection)功能:对 small 做连通图52 select_region_point(Small...
30 select_region_point() 选择包括给定像素在内的所有区域。 31 select_region_spatial() 讨论区域的关联性。 32 select_shape() 根据图形特征选择区域。 33 select_shape_proto() 选择彼此有某种关系的区域。 34 select_shape_std() 选择给定形状的区域。 35 smallest_circle() 一个区域的最小周长。 36 sma...
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_...
获取Region 的边缘点集,使用 GenContourRegionXld 算子,选择 “border_holes”模式,它包括了内部的孔洞,将所有的轮廓都提取出来,从大到小排序,将内部孔洞的轮廓设置为 Mask; publicvoidDispRegion(HObjectho_Object){intnum=ho_Object.CountObj();for(intk=0;k<num;k++){HOperatorSet.SelectObj(ho_Object,out...