halcon常用算子中文说明

2020-04-18 06:52

sub_image (ImageConverted1, ImageConverted2, ImageSub, 1, 0)一幅图减另一幅图。用一幅图 的灰度减另一幅的灰度成新的一幅图。

mult_image (Image, ImagePart, ImageResult, 0.015, 0)一幅图加一幅成的一幅图

convert_image_type (Traffic2, ImageConverted2, 'int2')转换图像的格式

crop_part (ImageNoise, ImagePart, 0, 0, Width, Height)取出一幅图的中部分

dots_image (ImageResult, DotImage, 5, 'dark', 2)取出图像中圆点 partition_dynamic (SelectedRegions, Partitioned, 25, 20)根据各个区域的特征将各个区域分割 开。

intersection (Partitioned, Region, Characters)取出两个区域中重叠的部分,如果 Region 有两个 区域在 Partitioned 中,则这两个区域合并成一区域。

difference (RegionDilation, RegionErosion, RegionDifference)取出两个区域中不重叠的部分。

critical_points_sub_pix (FilterResponse, 'facet', 1.5, 0.7, RowMin, ColMin, RowMax, ColMax, RowSaddle, ColSaddle)取出图像中的关键点。 corner_response (Image, FilterResponse, 3, 0.04)

auto_threshold (Image, Regions, 10)自动阈值分割,根据灰度直方图中两波峰中的波谷取出阈 值。

closing (RegionClosing3, Rectangle, RegionClosing4)用一个设计好的区域来封闭其它区域。

hom_mat2d_identity (HomMat2DIdentity)生成一个 2D 单位矩阵 hom_mat3d_identity (HomMat3DIdentity)生成一个 3D 单位矩阵 hom_mat2d_translate(HomMat2DIdentity,-0.5*(Row1+Row2),-0.5*(Column1+Column2), HomMat2DTranslate)对矩阵进行 2D 变换,用于平移。

hom_mat3d_rotate (HomMat3DIdentity, GraspPhiZ_ref, 'z', 0, 0, 0, HomMat3D_RZ_Phi)对矩阵进 行 3D 变换,用于旋转。

hom_mat3d_translate(HomMat3D_RZ_Phi,CenterPointX_ref,CenterPointY_ref, 0, ref_H_grasp) 对矩阵进行 3D 变换,用于平移。

hom_mat2d_scale (HomMat2DTranslate, ScaleFactor, ScaleFactor, 0, 0, HomMat2DScale)对矩阵 进行变换,用于缩放

hom_mat3d_compose (cam_H_ref, ref_H_grasp, cam_H_grasp)将两矩阵相乘

hom_mat3d_to_pose (cam_H_grasp, PoseCamGripper)将矩阵变换成 3D 位姿

affine_trans_contour_xld

(LogoContoursTemp,

LogoContours,

HomMat2DComplete) 对 线 条 LogoContoursTemp 进行

HomMat2DComplete 对应的变换(平移和缩放) 。

compose3 (ImageRed, ImageGreen, ImageBlue, LogoImageTempl)将三幅图像合并成一幅图像

decompose3 (LogoImage, ImageR, ImageG, ImageB)将一幅图像根据 RGB 值转换成三幅图像。

paint_xld

(LogoContours,

LogoImageTempl,

LogoImage,

[Blue,Orange,Blue,Blue,Blue,Blue])对线 条喷颜色。

Blue := [0,48,117],Orange := [255,181,41]

check_difference (Traffic1, Traffic2, Selected1, 'diff_outside', -255, 15, 0, 0, 0)根据两幅图的不同 进行图像分割。

bin_threshold 自动阈值分割,与 auto_threshold (Image, Regions, 10)类似,但只有一个最小值 取得仅有一个阈值。

char_threshold (Alpha1, Alpha1, Characters, 6, 95, Threshold)自动阈值分割, 阈值根据直方图的 波峰取得

dyn_threshold (ImageFilled, ImageMean, RegionDynThresh, 3, 'light')动态阈值分割。

gray_histo (Alpha1, Alpha1, AbsoluteHisto, RelativeHisto)获得绝对与相对直方。

background_seg (Edges, BackgroundRegions)将找出的区域根据背景分割

成各个连通的区域。

fill_up_shape (BackgroundRegions, RegionFillUp, 'area', 1, 40)有选择性的填充

smooth_funct_1d_gauss (Function, Sigma, SmoothedFunction)对一维数组进行平滑处理。

funct_1d_to_pairs (SmoothedFunction, XValues, YValues)将数据分别对应赋予一个横坐标。

fill_interlace (Image, ImageFilled, 'odd')修改在采集图像过程中造成的两个半幅图像拼接的问 题。

regiongrowing (Image, Regions, 1, 1, 1, 100)将图像分割成各个灰度值相近的区域。

expand_gray_ref (Regions, Image, EmptyRegion, RegionExpand, 'maximal', 'image', Mean, 11)根 据灰度和颜色将分离的区域连通。

expand_line (Image, RegionExpand, Line, 'mean', 'row', 100)将轮廓拓展成一个跟其灰度相近的 区域。

expand_region (Regions, NoPixel, RegionExpanded1, 'maximal', 'image')根据设定的特征将分离 的区域连通。

fast_threshold (Image, Region, 128, 255, 10)根据最大和最小灰度以及面积选出区域

gray_erosion_rect (Image, Imag, StrokeWidth, StrokeWidth)每个点的灰度值用这个点的矩形掩 码内最小灰度值代替。

select_shape_std (ConnectedRegions, SelectedRegion, 'max_area', 70)从多个区域选出指定特征 相似的区域。如选出面积最大的区域。

scale_image_max (ImageReduced, ImageScaleMax)增加图像的对比度 text_line_orientation (SelectedRegion, ImageScaleMax, 30, rad(-30), rad(30), OrientationAngle) 检测具有字符的图像的方向

rotate_image (ImageScaleMax, ImageRotate, deg(-OrientationAngle), 'constant')将图像按照指定 的角度旋转

find_text (ImageRotate, TextModel, TextResult)根据设定的模板寻找字

get_mposition (WindowHandleButton, Row, Column, Button)获得鼠标坐标

gen_grid_region (RegionGrid, Gap, Gap, 'lines', Width, Height)生成网格区域

clip_region (Grid, StreetGrid, 165, 20, 405, 750)选择一定范围内的区域。

clip_region_rel (RegionBorder, RegionClipped, 5, 5, 5, 5)选择四边都减去一定像素的区域

gray_closing (Image, ImageReduced, ImageClosingFast)灰度值闭操作 gray_opening (Image, ImageReduced, ImageOpeningFast)灰度值开操作 hysteresis_threshold (EdgeAmplitude, RegionHysteresis, 10, 20, 10)当大于最大阈值的点取出做 为可靠点,最大与最小值之间的点根据与可靠点的关系选出。

get_domain (Image, Domain)得到整幅图像的区域

gen_rectangle1 (Rectangle, Row1, Column1, Row2, Column2)在区域内部的实心区域得到一个 平行于横坐标的最大矩形。

complement(Region : RegionComplement : : )找到输入区域的补区域 interjacent (Regions, RegionInterjacent, 'border')找到将各个区域分割开的区域

local_max (Image, LocalMaxima)找到比周围灰度值都大的点。 local_min (ImageInverted, LocalMinima)找到比周围灰度值都小的点 smooth_image (Image, ImageSmooth, 'deriche2', 0.2)平滑图像 invert_image (ImageSmooth, ImageInverted)用 255 减去每个点的灰度值作为这个点新的灰度 值。

shape_trans (RegionFillUp, Pads, 'convex')根据指定的参数对区域的形状进行转换, 如转换成正 方形等。

select_shape_proto (Pads, BallBonds, MissingBonds, 'overlaps_rel', 0, 0)选出具有相似特征的所 有区域

boundary (RegionIntersection, RegionBorder, 'inner')获得区域的边界 lines_gauss (ImageReducedTracks, Lines, 1.5, 1, 8, 'light', 'true', 'true', 'true')提取图的线条并计 算出图的宽度。

get_contour_xld (Line, Row, Column)获得线条的各个点的坐标 min_max_gray (ImageAngioMedian, ImageAngioMedian, 0, Min, Max, Range)获得区域内图像的 最大和最小灰度值

median_rect (ImageNeedle, ImageNeedleMedian, 41, 41)对图像中值滤波 shape_trans_xld (Border, XLDConvex, 'convex')将区域的边界根据不同的属性转化成线条

get_contour_attrib_xld (Line, 'width_left', WidthL)得到线上每个点的属性

fit_circle_contour_xld (ObjectSelected, 'ahuber', -1, 2, 0, 3, 2, Row, Column, Radius, StartPhi, EndPhi, PointOrder)将线条拟合成圆,得到位置和半径。

gen_circle_contour_xld (ContCircle, Row, Column, Radius, 0, rad(360), 'positive', 1.0)生成一个圆

get_contour_global_attrib_xld

(ObjectSelected,

'cont_approx',

Attrib)返回线条的全局属性值, 当 Attrib<0 时线条是直线,当 Attrib>0 时是圆弧。

clip_contours_xld (Lines, LinesClipped, Top, Left, Bottom, Right)选择一定区域内的线条

clip_end_points_contours_xld(EllipseContour,ClippedContoursLength, 'length', 20)去除线条两 端的部分像素。

region_to_bin (Rectangle, BinImage, 130, 100, 120, 130)将区域转换成具有固定灰度值的图像

paint_gray (SmoothedImage, BinImage, Image)将一图图像绘制到另一幅图像上。

union_collinear_contours_xld (RegressContours, UnionContours, 10, 1, 2, 0.1, 'attr_keep')连接共 线的线条。


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

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

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

马上注册会员

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