gen_region_polygon_filled— Store a polygon as a “filled” region.Signaturegen_region_polygon_filled( : Region : Rows, Columns : ) DescriptionThe operator gen_region_polygon_filled creates a region from a polygon containing the corner points of the region (line and column coordinates) either ...
gen_region_polygon_filled— Store a polygon as a “filled” region.Signaturegen_region_polygon_filled( : Region : Rows, Columns : ) DescriptionThe operator gen_region_polygon_filled creates a region from a polygon containing the corner points of the region (line and column coordinates) either ...
131:* Visualize the squareinthe original image 132:disp_polygon (WindowHandle, [RectangleRow,RectangleRow[0]], [RectangleCol,RectangleCol[0]]) 133:dev_display (Image) 134:* create the ROI 135:gen_region_polygon_filled (ROI, RectangleRow, RectangleCol) 136:reduce_domain (Image, ROI, Image...
131:* Visualize the squareinthe original image 132:disp_polygon (WindowHandle, [RectangleRow,RectangleRow[0]], [RectangleCol,RectangleCol[0]]) 133:dev_display (Image) 134:* create the ROI 135:gen_region_polygon_filled (ROI, RectangleRow, RectangleCol) 136:reduce_domain (Image, ROI, Image...
gen_region_polygon_filled (Region1, Row, Col) gen_contour_polygon_xld (Contour, Row, Col) *判断轮廓是不是闭合 test_closed_xld (Contour, IsClosed) if (IsClosed == 1) endif close_contours_xld (Contour, ClosedContours) gen_region_contour_xld (ClosedContours, Region2, 'filled') ...
gen_region_contour_xld (XLD1, Region, 'filled') 1. 2. 3. 2、gen_region_polygon_xld(Polygon : Region : Mode : ) 功能:根据多边形轮廓创建一个区域region read_image(Image,'lena') draw_xld (XLD1, 3600, 'true', 'true', 'true', 'true') ...
gen_polygons_xld (XLD1, Polygons, 'ramer', 2)//用多边形逼近XLD轮廓, Polygons为XLD Polygon类型 gen_region_polygon_xld (Polygons, Region, 'filled') 3、gen_contour_region_xld(Regions : Contours : Mode : ) 功能:根据region创建一个xld ...
使用gen_region_polygon函数来生成多边形结构内核,这个函数的参数中: (1)第一个参数Region为输出的多边形结构内核区域; (2)第二个参数Rows为多边形的角点的行坐标组; (3)第三个参数Columns为多边形的角点的列坐标组。 在HALCON当中,使用dilation1函数来实现膨胀变换,这个函数的参数中: ...
Polygon(输入参数):输入XLD多边形 PolygonsAffinTrans(输出参数):变换的XLD多边形 HomMat2D(输入参数):仿射变换矩阵 gen_region_polygon_filled(reg,[100,50,50,100,300,300,300,100],[50,100,200,400,400,200,50,50]) gen_contour_region_xld (reg, Contours, 'border') ...
gen_region_polygon_filled (ROI, RectangleRow, RectangleCol) reduce_domain (Image, ROI, ImageReduced) * Extract the lines lines_gauss (ImageReduced, Lines, 1, 3, 8, 'dark', 'true', 'bar-shaped', 'true') * Adapt the pose of the measurement plane to the tilted plane of the vernier ...