fill_up_shape — 填充具有给定形状特征的区域中的孔。 // Fill up holes in regions based on shape feature 'area' fill_up_shape (BackgroundRegions, RegionFillUp, 'area', 1, 40) ... 1. 2. 3. 函数解析 fill_up_shape(Region : RegionFillUp : Feature, Min, Max : ) Region (input_obje...
(1)第一个参数Region为输入需要填充的区域; (2)第二个参数RegionFillUp为填充后的区域; (3)第三个参数Feature为筛选的条件; (4)第四个参数Min为条件最小值; (5)第五个参数Max为条件最大值。 在HALCON中使用clip_region来实现区域的矩形裁切,这个函数的参数中: (1)第一个参数Region为输入需要裁切的区域; ...
当我们想要提取Region时,图像处理后,往往存在几个类似的Region,此时,需要根据Region的一些特殊特征,来选择指定的Region。 求Region指定特征值:region_features(Regions : : Features : Value) 根据特征值选择区域:select_shape(Regions : SelectedRegions : Features, Operation, Min, Max : ) *清空显示窗口 dev_clos...
Halcon学习之三:操作图像区域Halcon学习:获取Image图像中Region区域的特征参数 area_center_gray ( Regions, Image : : : Area, Row, Column )计算Image图像中Region区域的⾯积Area和重⼼(Row,Column)。cooc_feature_image ( Regions, Image : : LdGray, Direction : Energy,Correlation, Homogeneity, ...
(max-min)作为输出图像像素值,扩大了亮的部分gray_range_rect (ImageFiltered, ImageResult,10,10)*获得图像最大灰度值和最小灰度值min_max_gray (ImageResult, ImageResult,0, Min, Max, Range)*二值化提取( 5.55是经验值,在调试中得到)threshold (ImageResult, RegionDynThresh, max([5.55,Max *0.8]),...
cooc_feature_matrix ( CoocMatrix : : : Energy, Correlation,Homogeneity, Contrast ) 根据共生矩阵计算灰度特征值 elliptic_axis_gray ( Regions, Image : : : Ra, Rb, Phi ) 计算Image图像的Region区域的Ra,Rb和Phi。 entropy_gray ( Regions, Image : : : Entropy, Anisotropy ) Image图像中Region区域...
fill_up后将图像中间空的区域填满,然后使用get_feature获取每个region的形状特征包括distance、sigma和Roundness(sigma与distance间的关系)、moments_region_central_invar算子得到的特征(Geometric moments of regions),计算公式见文末。分类:共有3种,圆、6边形、和齿轮状的,分类后classes为得到的编号数组,class为...
gen_contour_region_xld(inputRegion,output,...) XLD的选择操作(select_shape_xld/selet_contours_xld): select_shape_xld(XLDFeatures,Operation,Min,Max:) select_contours_xld(ContoursFeature,Min1,Max1,Min2,Max2:) 计算xld的面积以及中心位置:
reduce_domain (Image, region2, ReducedImage)获取Image图像中Region区域的特征参数area_center_gray ( Regions, Image :& 44、#160;: : Area, Row, Column ) 计算Image图像中Region区域的面积Area和重心(Row,Column)。cooc_feature_image ( Regions, Image : : LdGray, Direction : Energy,Correlation, ...
features := create_feature_set() add_features_object(features, ImageReduced, 7) distance_transform(ImageReduced, DistanceTransform) threshold(DistanceTransform, Region, 10, 255) connection(Region, ConnectedRegions) num_regions := count_obj(ConnectedRegions) for i := 1 to num_regions region_features...