SmallestCircle(ho_Region,&hv_Row, &hv_Column, &hv_Radius);//获取区域最小外接圆数据//参数1:输入给定区域//参数2:输出中心行坐标-y坐标//参数3:输出中心列坐标-x坐标//参数4:输出外接圆半径GenCircle(&ho_Circle, hv_Row, hv_Column, hv_Radius);//创建一个圆区域GetImageSize(ho_Image1,&hv_Widt...
*将抓到的空白区域转成bin图像测量 smallest_circle (Region_Base, Row_Base, Column_Base, Radius_Base) fill_up (Region_Base, Region_Base_Fill) difference (Region_Base_Fill, Region_Base, Region_Holes) connection (Region_Holes, Region_Holes) select_shape (Region_Holes, Region_Holes, 'area', '...
SmallestCircle(ho_Region, &hv_Row, &hv_Column, &hv_Radius); //获取区域最小外接圆数据 //参数1:输入给定区域 //参数2:输出中心行坐标-y坐标 //参数3:输出中心列坐标-x坐标 //参数4:输出外接圆半径 GenCircle(&ho_Circle, hv_Row, hv_Column, hv_Radius); //创建一个圆区域 GetImageSize(ho_Ima...
select_shape_std (ConnectedRegions, SelectedRegions, 'max_area', 70) smallest_circle (SelectedRegions, Row2, Column2, Radius) gen_circle (Circle, Row2, Column2, Radius) reduce_domain (ImageGray, Circle, ImageReduced2) gray_closing_rect (ImageReduced2, ImageClosing1, 10, 4) polar_trans_i...
smallest_circle— Smallest surrounding circle of a region. Signature Description Attention The smallest surrounding circle of a region. Note that the calculation is based on the center coordinates of the region pixels and that 0.5 is added to the resulting radius. ...
smallest_circle (Operator) Namesmallest_circle— Smallest surrounding circle of a region.Signaturesmallest_circle(Regions : : : Row, Column, Radius) DescriptionThe operator smallest_circle determines the smallest surrounding circle of a region, i.e., the circle with the smallest area of all ...
smallest_circle (SelectedRegions1, Row1, Column1, Radius1) CenterRow[1]:=Row1 CenterColumn[1]:=Column1 CenterRadius[1]:=Radius1 ***对内外圆进行卡尺测量 *创建测量句柄 create_metrology_model (MetrologyHandle) *设置卡尺测量参数 add_metrology_object_circle_measure (MetrologyHandle, CenterRow,...
smallest_circle(Regions : : : Row, Column, Radius) 作用:计算最小外接圆参数 smallest_rectangle1(Regions : : : Row1, Column1, Row2, Column2) 作用:计算平行坐标轴的最小外接矩形参数 smallest_rectangle2(Regions : : : Row, Column, Phi, Length1, Length2) ...
smallest_circle (FinalBalls, Row, Column, Radius) 可以看到,列确实是从小到到大排列的 显示圆 disp_circle (WindowID, Row, Column, Radius) 完整代码 * ball.hdev: Inspection of Ball Bonding*dev_update_window ('off')dev_close_window ()dev_open_window (0, 0, 728, 512, 'black', WindowID)...
smallest_circle (FinalBalls, Row, Column, Radius) NumBalls := |Radius| Diameter := 2 * Radius meanDiameter := sum(Diameter) / NumBalls mimDiameter := min(Diameter) dev_display (Bond) disp_circle (WindowID, Row, Column, Radius)