smallest_rectangle2 (Region, Row, Column, Phi, Length1, Length2)*返回最小外接任意角度矩形数据*参数1:输入区域*参数2:最小外接矩形的中心点的行坐标-y坐标*参数3:最小外接矩形的中心点的列坐标-x坐标*参数4:最小外接矩形的长边与图像坐标系x轴的夹角,,范围为-1.5707963265到+1.5707963265弧度(-90°到...
最小外接矩形:最小外接矩形长宽的一半称为长宽半轴,长轴方向称为区域的方向 存在任意角度的称为rect2,水平竖直的矩形称为rect1 在HDevelop中 read_image (Image, 'D:/bb/tu/5.jpg') rgb1_to_gray(Image,Image1) threshold (Image1, Region,[75] , [90]) smallest_rectangle2 (Region, Row, Column,...
在Halcon中,你可以使用gen_rectangle1或gen_rectangle2函数来生成一个矩形区域,但计算最小外接矩形通常不是直接通过这两个函数实现的。实际上,Halcon提供了专门的工具来计算区域的最小外接矩形,如smallest_rectangle1和smallest_rectangle2函数。 smallest_rectangle1:计算单连通区域的最小外接矩形。 smallest_rectangle2...
Halcon算子:smallest_rectangle1()和smallest_rectangle2() smallest_rectangle1(Regions : : : Row1, Column1, Row2, Column2) 功能:返回平行坐标最小外包矩形 该算子计算返回输入区域的平行于坐标系的最小外包矩形。该最下外包是关于区域中心计算的最小平行外包。 返回参数:Row1, ... ...
smallest_rectangle1求出的矩形永远是与图像的水平坐标轴平行,不会发生旋转,输出的矩形是该矩形的左上角和右下角坐标。smallest_rectangle2输出...
1)其获取的矩形角度范围- 90< angle <= 90,即无论通过算子gen_rectangle2生成的Region角度多大,smallest_rectangle2获取的角度都不会超出这个范围。 2)算子smallest_rectangle2输出的角度是通过计算Region长轴与X轴正方向夹角获取,且角度不能超出限定范围。
smallest_rectangle2 (XYTransRegion1, Row3, Column3, Phi, Length1, Length2) gen_rectangle2 (Rectangle, Row3, Column3, Phi, Length1, Length2) dev_display (ImageGray) dev_display (Rectangle) 处理效果
smallest_rectangle1:最小外接矩形1 区域的角度:区域的角度就是外接矩形的角度。 区域的凸性:每个区域都存在一个最小的凸性区域,这个区域内的任意位置两点连线都在该区域内,这样的区域称为区域的凸性区域。其中原区域与凸性区域的比值称为区域的凸性,范围0-1. ...
smallest_rectangle1— Surrounding rectangle parallel to the coordinate axes.Signaturesmallest_rectangle1(Regions : : : Row1, Column1, Row2, Column2) DescriptionThe operator smallest_rectangle1 calculates the surrounding rectangle of all input regions (parallel to the coordinate axes). The surrounding ...
smallest_rectangle1— Surrounding rectangle parallel to the coordinate axes. Parallelization Multithreading type: reentrant (runs in parallel with non-exclusive operators). Multithreading scope: global (may be called from any thread). Automatically parallelized on tuple level. ...