gen_circle_contour_xld创建一个或多个圆弧或闭圆。 圆由它们的中心(Row, Column)和半径Radius指定。 此外,圆弧的起始点角度StartPhi,终点角度EndPhi,以及沿边界的正反方向PointOrder。 通过包含相邻轮廓点间像素欧氏距离的分辨率来控制生成的轮廓ContCircle 的分辨率。
gen_circle_contour_xld(:ContCircle:Row,Column,Radius,StartPhi,EndPhi,PointOrder,Resolution ) gen_circle_contour_xld创建一个或多个圆弧或闭合圆。 圆圈由它们的中心(行,列)和它们的半径指定。 圆弧的特征在于起点StartPhi的角度,终点EndPhi的角度和沿边界的PointOrder。 得到的轮廓ContCircle的分辨率通过包含相...
gen_arrow_contour_xld( : Arrow : Row1 , Column1 , Row2 , Column2 , HeadLength , HeadWidth : )函数为halcon二次封装的函数,用于创建箭头形状的XLD轮廓,它从坐标(Row1 ...
union_adjacent_contours_xld。 (5)对合并好的轮廓可以拟合圆参数fit_circle_contour_xld。 (6)产生圆gen_circle_contour_xld。...域是一个圆环区域的话,那就运行骨架算子skeleton得到圆环区域的骨架,然后用gen_contours_skeleton_xld生成骨架轮廓。如果该区域是圆形区域,那么可以用产生区域轮廓算子 , EndPhi, Point...
draw_circle (WindowHandle, Row, Column, Radius) gen_circle_contour_xld (ContCircle, Row, Column, Radius, 0, \ rad(360) , 'positive', 1.0) gen_region_contour_xld (ContCircle, Region, 'filled') Sind die Parameterwerte korrekt, dann liefertgen_circle_contour_xldden Wert 2 (H_MSG_TRUE...
在Halcon中,gen_region_contour_xld函数可以将XLD轮廓转换为区域。这个函数接受一个XLD轮廓作为输入,并输出一个与之对应的区域。 3. 使用适当的方法或函数将gen_circle_contour_xld的输出转换为区域(region) 下面是一个简单的代码示例,展示了如何使用gen_circle_contour_xld生成圆的XLD轮廓,并使用gen_region_contour...
[Halcon&算子] gen_cross_contour_xld 函数原型: gen_cross_contour_xld( : Cross : Row, Col, Size, Angle 😃 函数作用: 为每个输入点(行、列)生成交叉形状的XLD轮廓。从概念上讲,轮廓由两条长度大小的线组成,这些线正好在输入点相交。它们的方位由角度决定。十字架以十字架的形式返回。如果要处理多个点...
( 'negative'负序, 'positive'正序) *注意:拟合时参数1只能包含一条xld gen_ellipse_contour_xld (ContEllipse, Row, Column, Phi, Radius1, Radius2, StartPhi, EndPhi, 'positive', 1.5) *创建椭圆弧的XLD轮廓 *参数1:生成的轮廓 *参数2:Row椭圆中心的行坐标 *参数3:Column椭圆中心的列坐标 *参数4:...
gen_ellipse_contour_xld returns 2 (H_MSG_TRUE) if all parameter values are correct. If necessary, an exception is raised.Possible Predecessorsdraw_ellipse Possible Successorsdisp_xld, get_points_ellipse Alternativesgen_circle_contour_xld Module...
gen_ellipse_contour_xld (ContEllipse, Row, Column, Phi, Radius1, Radius2, StartPhi, EndPhi, 'positive', 1.5) *创建椭圆弧的XLD轮廓 *参数1:生成的轮廓 *参数2:Row椭圆中心的行坐标 *参数3:Column椭圆中心的列坐标 *参数4:Phi主轴方向