halcon常用算子中文说明(2)

2020-04-18 06:52

gen_contour_polygon_xld (Contour4, [200,200,300,300,200],

[320,450,450,300,300])生成任意 多边曲线

close_contours_xld (Contours, ClosedContours)让不封闭的线条封闭 select_contours_xld (Contours, SelectedContours, 'closed', 0, 20, 0, 0)选择一定条件的线条。

crop_contours_xld (Lines, LinesCropped, Top - 0.5, Left - 0.5, Bottom + 0.5, Right + 0.5, 'false')提 取出一定范围内的线条。

gen_polygons_xld (Contour1, Polygon1, 'ramer', 10)将线条拟合成多边形。

dev_set_part (239, 197, 239+17, 197+17)设置显示的区域 dev_set_color ('cyan')设置显示的颜色

dev_set_draw ('margin')设置显示的区域是填充还是空心的 dev_set_shape ('ellipse') 设置显示的区域的形状

select_region_point (Regions, DestRegions, Row, Column)选择包含指定点的区域

gen_contour_region_xld (SelectedRegions, Contours, 'border_holes')根据区域和指定的特征生 成轮廓线。

dump_window_image (DumpImage, WindowHandle)将窗口的内容截图成图像 area_center_points_xld

(ClipContours,

Area,

RowPoints,

ColumnPoints)轮廓线所有点计算的中 心

area_center_xld (ClipContours, Area, Row, Column, PointOrder)轮廓线所有的区域的中心

gen_nurbs_interp (Rows, Cols, [0,-10,0,10], 3, CtrlRows, CtrlCols, Knots)根据提供的点拟合成曲 线的坐标

gen_contour_nurbs_xld (Contour, CtrlRows, CtrlCols, Knots, 'auto', 3, 1, 5)根据拟合的坐标生成 轮廓线

gen_parallel_contour_xld(Edges,ParallelEdgesAngle,'contour_normal', 3)根据指定的特征生成 相应的平行线。

get_grayval_contour_xld (Image, Contour, 'bilinear', Grayval)提取

了轮廓线上所有点的灰度值

test_subset_region(Region1, Region2 : : : IsSubset)测试一个区域是不是在另一个区域中。

subset(Rows,Min)从数组 Rows 先出 Min 对应序列的数组

create_funct_1d_array (Grayval, Function)根据数组生成一个函数序列 local_min_max_funct_1d (Function, 'strict_min_max', 'false', Min, Max)提取出函数序列中的局 部最大和最小值。

dev_inspect_ctrl (PoseRobotGrasp_ZYX)打开检测窗口 dev_close_inspect_ctrl (PoseRobotGrasp_ZYX)关闭检测窗口

pose_to_hom_mat3d (PoseCamBase, cam_H_base)将 3D 位姿转换成一个矩阵。

disp_3d_coord_system (WindowHandle, CamParam, PoseCamRef, 0.01)根据内参和外参显示 3D 坐标系

concat_obj (Lines, Contour, Lines)将对象合并,可以分类时将属性相同的人为合并成一类。

gen_parallels_xld (Polygon, ParallelLines, 50, 100, rad(10), 'true')找到平行的轮廓线

get_parallels_xld (ParallelLines, Row1, Col1, Length1, Phi1, Row2, Col2, Length2, Phi2)得到平行 轮廓线的相关坐标。

affine_trans_point_3d(cam_H_ref,GraspPointsX_ref,GraspPointsY_ref, [0, 0], GraspPointsX_cam, GraspPointsY_cam, GraspPointsZ_cam)对点进行 3D 变换。

project_3d_point(GraspPointsX_cam,GraspPointsY_cam,GraspPointsZ_cam, CamParam, GraspPointsRow, GraspPointsCol)将空间的 3D 坐标变换到图像坐标

union_cocircular_contours_xld (ContoursSplit, UnionContours, 0.9, 0.5, 0.5, 200, 50, 50, 'true', 1) 将属于同一个圆的轮廓线连接起来 sort_index(Length)[|Length|-1]+1 找出最大值对应的索引

polar_trans_image (ImageReduced, ImagePolar, Row, Column,

PolarResolution, Radius+5) 把图像由笛卡尔坐标转换成极坐标下图像,及把圆环形的图像区域转换成矩形区域。

polar_trans_region_inv (RegionUnion, XYTransRegion, Row, Column, 6.28319, 0, Radius-RingSize, Radius, 640, RingSize, 1280, 1024, 'nearest_neighbor')把图像由极坐标坐标转换成笛卡尔下图 像,及把矩形的图像区域转换成圆环形区域。

rotate_image (ImagePart, ImageRotate, 90, 'constant')将图像旋转 90 度 lines_color (Image, Lines, 3.5, 0, 12, 'true', 'false')检测图像中颜色线条,并提取出它们的宽度。

Measure_circle 提取圆弧线的例子: intersection_ll( : : RowA1, ColumnA1, RowA2, ColumnA2, RowB1, ColumnB1, RowB2, ColumnB2 : Row, Column, IsParallel)提取两条交叉直线交叉点的坐标

orientation_region (Region, OrientationRegion)提取区域的方向 obj_diff (ConnectedRegions, LeftRegions, RightRegions)提取两组对象中不同的对象。

optical_flow_mg (Image1, Image2, VectorField, 'clg', 1, 1, 1000, 5, 'default_parameters', 'fast')计 算两幅图像中的视觉差异,用于监控。

vector_field_length (VectorField, LengthImage, 'squared_length')计算向量的长度,得到差异图 像。

local_max_sub_pix (ImageReduced, 'facet', 1.0, 4, Row, Column)提取出图像中灰度极大值的坐 标

mod_parallels_xld (ParallelRoadEdges, Part, ModParallelRoadEdges, ExtParallelRoadEdges, 0.3, 160, 220, 10)修补平行的轮廓线

split_contours_xld (Polygons, SplitContours, 'polygon', 1, 5) regress_contours_xld (SplitContours, RegressContours, 'drop', 1) select_xld_point (Contours, SelectedContours, PointRow, PointCol)选择包含指定点的轮廓线。

symm_difference_closed_contours_xld (BoundarySet1, BoundarySet2, ContoursDifference)提取 封闭对称轮廓线的不同部分

test_self_intersection_xld (Contours, 'false', DoesIntersect)检测轮廓线本身是否存在交叉点

test_xld_point (Contour1, PointRow, PointCol, IsInsideContour1)测试提供的点是否被轮廓线包 含在内

union2_closed_contours_xld

(BoundarySet1,

BoundarySet2,

ContoursUnion)从多条轮廓线中合 并成封闭的轮廓线

union2_closed_polygons_xld

(BoundarySet1,

BoundarySet2,

PolygonsUnion)从多个多边形的轮 廓线中提取封闭的轮廓线。

union_cotangential_contours_xld (ContourConcat4, UnionContours4, FitClippingLength, FitLength, TestMaxTangAngle, MaxDist, MaxDistPerp, MaxOverlap, 'attr_forget')

tile_images (Images4, TiledImage3, 2, 'horizontal')将幅图像合并成一幅图像

select_contours_xld

(RegressContours,

SelectedContours,

'curvature', 0, 0.5, 0, 0)根据线的特征 选择轮廓线。

select_shape_xld (SelectedContours, SelectedEdges, 'contlength', 'and', 15, 500)根据线的形态特 征选择轮廓线。

vector_to_proj_hom_mat2d([RowUL,RowUR,RowLR,RowLL]+0.5,[ColUL,ColUR,ColLR,ColLL]+0.5,[160,160,340,340]+0.5,[250,550,550,250]+0.5,'normalized_dlt', [], [], [], [], [], [], HomMat2D, Covariance)根据图像坐标和实际坐标得到坐标的变换关系。

union_collinear_contours_ext_xld (UnionContours, UnionContours, MaxDistAbs, MaxDistRel, 5, 0.5, 0, -1, 1, 1, 1, 1, 1, 0, 'attr_keep') 连 接 同 线 的 轮 廓 线 , 提 取 的 轮 廓 比

union_collinear_contours_xld 更精准。 orientation_points_xld

(WireSegment,

RefOrientation)

corner_response (ImaAmp, ImageCorner, 3, 0.04)提取图像中的角

gen_parallels_xld (Polygon, ParallelLines, 50, 100, rad(10), 'true')找到平行的直线


halcon常用算子中文说明(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:设计与施工一体化资质标准(4个)

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: