*根据形状特征选择轮廓 *参数1:轮廓集 *参数2:选中的轮廓 *参数3:形状特征 * 'area': 轮廓的面积---默认 * 'area_points': 轮廓点的面积 * 'row': 中心的行索引 * 'column': 中心的列索引 * 'width': 轮廓的宽度 * 'height': 轮廓的高度 * 'ratio': 轮廓的高度与宽度之比 * 'row1': 左上...
height_width_ratio_xld计算每个输入轮廓或多边形的外接矩形(平行于坐标轴)。 外接矩形由角像素(Row1、Column1、Row2、Column2)的坐标描述(参见smallest_rectangle1_xld)。 根据这些值,height_width_ratio_xld计算出矩形的宽度、高度和长宽比如下: Width = Column2-Column1 Height = Row2-Row1 Ratio = Height...
select_shape_xld (Edges, SelectedXLD,'area','and',5500,5600)*根据形状特征选择轮廓*参数1:轮廓集*参数2:选中的轮廓*参数3:形状特征*'area': 轮廓的面积---默认*'area_points': 轮廓点的面积*'row': 中心的行索引*'column': 中心的列索引*'width': 轮廓的宽度*'height': 轮廓的高度*'ratio': 轮...
union_adjacent_contours_xld(VerticalContours, VerticalContours,10,1,'attr_keep') fit_line_contour_xld(HorizontalContours,'tukey', -1,0,5,2, RowBegin1, ColBegin1, RowEnd1, ColEnd1, Nr1, Nc1, Dist1) fit_line_contour_xld(VerticalContours,'tukey', -1,0,5,2, RowBegin2, ColBegin2, ...
halcon数据结构 Halcon有两类基本参数:图形参数Iconic (image, region, XLD)与控制参数Control (string, integer, real, handle),在Halcon算子的参数中,依次为:输入图形参数、输出图形参数、输入控制参数、输出控制参数;并且其输入参数不会被算子改变。下图为halcon与VC的语法区别。 图形参数 1、Images Halco...9...
Halcon 显示轮廓 XLD 是,像素往右下偏移了 0.5 个像素单位; 矩形轮廓中心点为(0.5, 0.5),长宽均为 0.39,显示位置应该完全在第一个像素格子里,实际上它的中心位置跑到了(1, 1); 圆轮廓的圆心在(0, 0),实际上跑到了(0.5, 0.5); 矩形区域的起点和终点位置,四舍五入之后,就是(0, 1)→(0, 1),所以...
4. 轮廓处理 *提取指定图像的外轮廓gen_contour_region_xld(Regions,Contours,Mode)*将轮廓线分为多个部分segment_contours_xld(Contours,ContoursSplit,Mode,SmoothCont,MaxLineDist1,MaxLineDist2)*通过不同的特征,提取出分割后轮廓中满足要求的轮廓线段select_contours_xld(Contours,SelectedContours,Feature,Min1,Max1...
#define H_ERR_DC2D_WRONG_MODULE_ASPECT 8863 /* Invalid module aspect ratio */ #define H_ERR_DC2D_WRONG_LAYER_NUM 8864 /* wrong number of layers */ #define H_ERR_DCD_READ_WRONG_VERSION 8865 /* wrong data code model version */ #define H_ERR_DC2D_NOSITEM 8866 /* Serialized item...
作用:从具有像素精度的图像提取得到XLD轮廓 Image:要提取XLD的单通道图像 Border:提取得到的XLD轮廓 Threshold:提取XLD轮廓的阈值 edges_sub_pix(Image : Edges : Filter, Alpha, Low, High : ) 作用:使用Deriche、Lanser、Shen或者Canny滤波器提取图像得到亚像素边缘 ...
height_width_ratio_xld, smallest_rectangle2_xld, shape_trans_xld See alsoshape_trans_xld, smallest_rectangle2_xld, smallest_circle_xld, elliptic_axis_xld, area_center_xld ModuleFoundationOperators HALCON Operator Reference 18.11.3.0 Copyright © 1996-2020 MVTec Software GmbH...