• Halcon常用算子实例汇总-掌握这些算子是必须的


    常用算子实例

    access_channel (Image, channel1, index)
    add_image(ImageNoise1,CAT2,image,2, 0)
    add_noise_white(CAT1,ImageNoise1,90)
    add_noise_distribution (GrayImage, ImageNoise, Distribution)
    add_sample_class_mlp (MLPHandle, FeatureVector, CorrectClassID)
    affine_trans_contour_xld (ShapeModel, ModelAtNewPosition, MovementOfObject)
    affine_trans_image (Image, ImageAffinTrans, HomMat2DScale, 'nearest_neighbor', 'false')
    affine_trans_point_3d (HomMat3D, RefPoint[0], RefPoint[1], RefPoint[2], X, Y, Z)
    affine_trans_region (Region, RegionAffineTrans, HomMat2DScale, 'nearest_neighbor')
    angle_ll (RowA1, ColumnA1, RowA2, ColumnA2, RowB1, ColumnB1, RowB2, ColumnB2, Angle)
    anisotropic_diffusion (Image, ImageAniso, 'weickert', 5, 1, 10)
    append_channel (MultiChannelImage1, image3, ImageExtended)
    append_ocr_trainf (CharaterRegions, Bottle, TrainingNames[i], TrainingFileName)
    area_center (Selected, Area, Row, Column)
    area_center_gray (RegionDilation, Image, Volume, Row, Column)
    area_center_points_xld (Contour_triangle, Area3, Row3, Column3)
    area_center_xld (Contours, Area, Row1, Column, PointOrder)
    auto_threshold (Median, Seg, 2.0)
    

    bandpass_image (Image, ImageBandpass, 'lines')
    bin_threshold (Image, Seg)
    binary_threshold (Image, RegionSmoothHistoLight, 'smooth_histo', 'light', UsedThreshold)
    binocular_distance (ImageRect1, ImageRect2, Distance, Score, CamParamRect1, CamParamRect2, RelPoseRect, 'ncc', 21, 21, 5, MinDisparity, MaxDisparity, 5, 0.1, 'left_right_check', 'interpolation')
    bit_and (GrayImage, GrayImage1, ImageAnd)
    bit_or (GrayImage, GrayImage1, ImageOr)
    bit_xor (Image2, Image3, ImageXor)
    bit_not (Image3, ImageNot)
    bit_lshift (Image2, ImageLShift, 3)
    bit_rshift (Image3, ImageRShift, 3)
    boundary (SelectedRegions, RegionBorder, 'inner')
    

    calibrate_cameras (CalibDataID, Error)
    calibrate_hand_eye (CalibDataID, Errors)
    caltab_points('caltab.descr', NX, NY, NZ)
    camera_calibration(NX, NY, NZ, [RCoord1, RCoord2, RCoord3],[CCoord1, CCoord2, CCoord3], StartCamPar,  [StartPose1, StartPose2, StartPose3], 'all', CamParam, NFinalPose, Errors)
    change_radial_distortion_cam_par ('fixed', CamParDist, 0, CamPar)
    change_radial_distortion_image (Image1, Image1, Image1Rect, CamParDist, CamPar)
    channels_to_image (Images, Ic)
    circularity (Rectangle, Circularity)
    circularity_xld (Contour_triangle, Circularity)
    classify_class_mlp (MLPHandle, FeatureVector, 2, FoundClassIDs, Confidence)
    classify_image_class_mlp (ImageReduced, ClassRegions, CuMLPHandle, 0.7)
    clear_bar_code_model (BarCodeHandle)
    clear_calib_data (CalibDataID)
    clear_class_mlp (MLPHandle)
    clear_data_code_2d_model (DataCodeHandle)
    clear_ncc_model (ModelID)
    clear_object_model_3d (ObjectModel3DSceneReduced)
    clear_ocr_class_mlp (OCRHandle)
    clear_shape_model (ModelID)
    clear_surface_matching_result (SurfaceMatchingResultID)
    clear_surface_model (SFM)
    clear_text_model (TextModel)
    clear_text_result (TextResultID)
    clear_variation_model (ModelID)
    clip_region(Grid, StreetGrid, 130,10,450,502)
    clip_region_rel (Region1, RegionClipped1, 12, 1, 1, 1)
    close_edges(ThinEdge,EdgeAmp,&CloseEdges,15);
    close_edges_length(ThinEdge,EdgeAmp,&CloseEdges,15,3);
    close_framegrabber (AcqHandle)
    close_measure (MeasureHandle)
    close_ocv (OCVHandle)
    closing (Region, ObjectSelected, RegionClosing)
    closing_circle (Region, RegionClosing1, 3)
    closing_rectangle1 (Region, RegionClosing2, 3, 3)
    create_aniso_shape_model (ImageModel, 'auto', -rad(10), rad(20), 'auto', 0.9, 1.7, 'auto', 0.9, 1.1, 'auto', 'none', 'use_polarity', 'auto', 20, ModelID)
    create_calib_data ('calibration_object', 1, 1, CalibDataID)
    create_class_mlp (NumFeatures, NumHidden, NumClasses, 'softmax', 'normalization', 10, 42, MLPHandle)
    create_data_code_2d_model ('Data Matrix ECC 200', [], [], DataCodeHandle)
    create_funct_1d_array (DistancesOffset, Function)
    create_ncc_model (ImageReduced, 'auto', 0, 0, 'auto', 'use_polarity', ModelID)
    create_ocr_class_mlp (10, 10, 'constant', 'default', CharacterNames, 80, 'none', 10, 42, OCRHandle)
    create_pose(0.1, 0.0, 0.5, 30, 10, 0, 'Rp+T', 'abg', 'point', StartPose1)
    create_scaled_shape_model_xld (Contours, 'auto', -0.39, 0.79, 'auto', 0.85, 1.15, 'auto', 'auto', 'ignore_local_polarity', 5, ModelID)
    create_shape_model (ModelImage, 'auto', rad(-90), rad(360), 'auto', 'auto', 'use_polarity', ['auto_contrast_hyst',20], 'auto', ModelID330)
    create_surface_model (ObjectModel3DModel, 0.03, [], [], SFM)
    create_text_model_reader ('auto', OCRHandle, TextModel)
    create_variation_model (Width, Height, 'byte', 'direct', VarModelID)
    crop_domain (Image, ImagePart)
    crop_rectangle1 (Image, ImageParts, [10,230], [60,120], [219,339], [299,219])
    crop_part(Image,ImgPart,0,0,512,512)
    compactness (Rectangle, Compactness)
    compactness_xld (Contour_triangle, Compactness)
    compare_ext_variation_model (ImageReduced1, RegionDiff, VarModelID, 'absolute')
    compare_variation_model (ImageScaled, RegionDiff, VariationModelID)
    complement (RegionDifference, RegionComplement)
    compose2 (image3, image2, MultiChannelImage1)
    concat_obj (Image1Rect, Image2Rect, ImagesRect)
    connection (Dark, Single)
    convert_image_type(GCAT,CAT1,'real')
    convexity (Rectangle, Convexity)
    convexity_xld (Contour_triangle, Convexity)
    convol_fft (ImageFFT, ImageLowpass, ImageConvol)
    convol_gabor(ImageFFT,Filter,Gabor,Hilbert)
    copy_image (Image, DupImage)
    copy_obj (ClassRegions, ObjectsSelected, 1, 1)
    correlation_fft (ImageFFT, ImageFFT, ImageCorrelation)
    count_channels (Image, Num)
    count_obj (ShapeModelRegions, HeightPyramid)
    count_seconds (S1)
    

    D开头的算子

    decompose3 (Image,image1,image2, image3)
    delete_file (TrainingFileName)
    derivate_gauss (Meningg5, Smoothed, 2, 'none')
    dev_clear_obj (BadObject1)
    dev_clear_window ()
    dev_close_window ()
    dev_display(GrayImage)
    dev_display_shape_matching_results (ModelID, 'lime green', Row, Column, Angle, 1, 1, 0)
    dev_error_var (Error, 1)
    dev_open_window (0, 0, 400, 400, 'white', WindowID)
    dev_open_window_fit_image (ImageConverted1, 0, 0, -1, -1, WindowHandle)
    dev_resize_window_fit_image (Image, 0, 0, -1, -1)
    dev_set_check ('give_error')
    dev_set_color ('red')
    dev_set_colored (12)
    dev_set_draw ('margin')
    dev_set_line_width (7)
    dev_set_part (0, 0, Height - 1, Width - 1)
    dev_set_window (WindowHandle1)
    dev_update_off ()
    dev_update_pc ('off')
    dev_update_window ('off')
    dev_update_var ('off')
    dev_update_time ('off')
    diameter_xld (Contour_triangle, Row11, Column11, Row21, Column21, Diameter)
    difference (Region, RegionUnion1, RegionDifference)
    dilation_circle(ConnectedRegions, RegionErosion, 3)
    dilation_rectangle1(ConnectedRegions, RegionErosion1, 3, 3)
    dilation1 (ConnectedRegions, Circle, RegionErosion2,1)
    dilation2 (RegionErosion2, Circle, RegionErosion3, 0, 0, 1)
    disp_arrow (WindowID, 255 - 20, 255 - 20, 255, 255, 1)
    disp_caltab(WindowHandle, 'calplate.cpd', CameraParam, FinalPose, 1.0)
    disp_continue_message (WindowHandle, 'black', 'true')
    disp_cross (3600, RowModel, ColumnModel, 30, 0)
    disp_ellipse (WindowID, Row, Column, Phi, Ra, Rb)
    disp_end_of_program_message (WindowHandle, 'black', 'true')
    disp_line (WindowID, RowA1, ColumnA1, RowA2, ColumnA2)
    disp_message (WindowID, '显示文字1', 'window', 20, 20, 'black', 'true')
    disp_xld (Arrows, WindowHandle)
    display_ellipses (Rim, Row, Column, Phi, Ra, Rb, WindowID)
    dist_ellipse_contour_points_xld (BorderContour, 'unsigned', 0, CenterRow, CenterCol, 0, Radius, Radius, Distances)
    distance_lr (RegionLines2, 45, 150, 125, 225, DistanceMin1, DistanceMax1)
    distance_pl (200, 200, Rows, Columns,Rows1, Columns1, Distance1)
    distance_pp (Rows, Columns,Rows1, Columns1, Distance)
    distance_ps (200, 200, Rows, Columns,Rows1, Columns1, DistanceMin,DistanceMax)
    distance_rr_min (RegionLines2, RegionLines3, MinDistance,Row1, Column1, Row2, Column2)
    distance_sr (RegionLines2, 45, 150, 125, 225, DistanceMin2,DistanceMax2)
    distance_transform (OpenedObject, DistanceImage, 'euclidean', 'false', Width, Height)
    div_image (Scene00, ImageGrayRamp, ImageResult, 255, 0)
    do_ocr_multi_class_mlp (EmptyObject, ImageAffinTrans, OCRHandle1, Class, Confidence)
    do_ocr_multi_class_mlp (FinalNumbers, Bottle, OCRHandle, RecNum, Confidence)
    do_ocv_simple (ImageSingel, OCVHandle, WordSelected, 'true', 'true', 'true', 'true', 30, Quality)
    dots_image (Image, DotImage, 5, 'dark', 2)
    draw_circle (3600, Row, Column, Radius)
    draw_rectangle2 (3600, Row1, Column1, Phi, Length1, Length2)
    draw_region (Region, WindowID)
    dual_threshold(Laplace,Result,MinS,MinG,Threshold)
    dump_window (WindowHandle, 'bmp', 'result/log')
    dyn_threshold (Rim, RimGauss, SmallAndDarkerRegion, 5, 'dark')
    

    eccentricity (Rectangle, Anisometry1, Bulkiness1, StructureFactor)
    edges_image (Image, ImaAmp, ImaDir, 'canny', 0.5, 'nms', 12, 22)
    edges_sub_pix (Image, Edges, 'canny', 1, 20, 40)
    eliminate_runs (Circle, RegionClipped, 100, 205)
    elliptic_axis (Regions, Ra, Rb, Phi)
    elliptic_axis_gray (RegionDilation, Image, RaCheck, RbCheck, PhiCheck)
    elliptic_axis_xld (Contour_triangle, Ra, Rb, Phi)
    emphasize (GrayImage, ImageEmphasize, Width, Height, 1)
    energy_gabor(GaborInv,HilbertInv,Energy)
    equ_histo_image (GrayImage, ImageEquHisto)
    erosion_circle(ConnectedRegions, RegionErosion, 1)
    erosion_rectangle1(ConnectedRegions, RegionErosion1, 1, 1)
    erosion1 (ConnectedRegions, Circle, RegionErosion2,1)    
    erosion2 (RegionErosion2, Circle, RegionErosion3, 0, 0, 1)
    estimate_noise (ImageNoise, 'foerstner', 20, SigmaFoerstner)
    expand_gray (Regions, Image, EmptyRegion, RegionExpand, 'maximal', 'image', 4)
    expand_region (Intersection, Back, RegionExpanded, 10, 'image')
    evaluate_class_mlp (MLPHandle, Features, Prob)
    

    fast_threshold (ModelImageMapped, Region, 0, 80, 20)
    fft_generic (ImageNoise, ImageFFT, 'to_freq', -1, 'sqrt', 'dc_center', 'complex')
    fft_image (ImageFilterEE, EE)
    fft_image_inv(Hilbert,&HilbertInv);
    fill_up (Region, RegionFillUp)
    fill_up_shape (Region, RegionFillUp, 'anisometry', 1, 1.6)
    find_aniso_shape_model (ImageStd,ModelIdShape, rad(0), rad(360), 0.9, 1.1, 0.9, 1.1, 0.6, 1, 0.5, 'least_squares', 0, 0.9, RowStd, ColStd, AngleStd, ScaleR, ScaleC, Score)
    find_bar_code (Image, SymbolRegions, BarCodeHandle, '2/5 Industrial', DecodedDataStrings)
    find_calib_object (Image, CalibDataID, 0, 0, I, [], [])
    find_caltab(Image3, CalPlate3, 'caltab.descr', 3, 112, 5)
    find_data_code_2d (Image_rectified, SymbolXLDs, DataCodeHandle, [], [], ResultHandles, DecodedDataStr)
    find_marks_and_pose(Image1, CalPlate1, 'caltab.descr', StartCamPar, 128, 10, 18, 0.9, 15.0, 100.0, RCoord1, CCoord1, StartPose1)
    find_ncc_model (Image, ModelID, 0, 0, 0.5, 1, 0.5, 'true', 0, Row, Column, Angle, Score)
    find_planar_uncalib_deformable_model (ImageTestScaled, DeformableModelId, rad(0), rad(45), 0.95, 1.05, 0.95, 1.05, 0.5, 1, 0.5, 8, 0.6, ['subpixel'], ['least_squares_very_high'], ResultHomMat1, ModelScore1)   
    find_scaled_shape_model (ImageReduced, CenterModelId, -0.39, 0.78, 0.85, 1.15, 0.75, 4, 0.2, 'least_squares', 5, 0.8, Row, Column, Angle, Scale, FixScore)
    find_shape_model (SearchImage, ModelID, 0, rad(360), 0.7, 1, 0.5, 'least_squares', 0, 0.7, RowCheck, ColumnCheck, AngleCheck, Score)
    fit_circle_contour_xld (couture, 'algebraic', -1, 0, 0, 3, 2, Row, Column, Radius, StartPhi, EndPhi, PointOrder)
    fit_ellipse_contour_xld (RelEdges, 'ftukey', -1, 2, 0, 200, 3, 2, Row, Column, Phi, Ra, Rb, StartPhi, EndPhi, PointOrder)
    fit_line_contour_xld (RelEdges, 'tukey', -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist)
    fit_rectangle2_contour_xld (RelEdges, 'regression', -1, 0, 0, 3, 2, Row, Column, Phi, Length1, Length2, PointOrder)
    fit_surface_first_order (PlaneRegion, Distance, 'regression', 5, 2, Alpha, Beta, Gamma)
    full_domain (Combined, Combined)
    fuzzy_perimeter(Trans,Trans,0,255,Per)
    

    gauss_distribution (20, Distribution)
    gauss_filter (Rim, RimGauss, 11)
    gen_arrow_contour_xld (Arrows, [Row0,Row0,Row0], [Column0,Column0,Column0], [RowAxX,RowAxY,RowAxZ], [ColumnAxX,ColumnAxY,ColumnAxZ], HeadLength, HeadLength)
    gen_bandpass(Bandpass,0.2,0.4,'n','dc_edge',Width,Height)
    gen_binocular_rectification_map (Map1, Map2, CamParam1, CamParam2, RelPose, 1, 'geometric', 'bilinear', CamParamRect1, CamParamRect2, CamPoseRect1, CamPoseRect2, RelPoseRect)
    gen_caltab( 7, 7, 0.1, 0.5, 'caltab.descr', 'caltab.ps')
    gen_circle (Circle, 200, 200, 100.5)
    gen_circle_contour_xld (ContCircle, 290, 260, 100, 0, 1,'positive',1)
    gen_contour_polygon_xld (Contour,150,450)
    gen_contour_region_xld (RegionFillUp, Contours, 'border')
    gen_contours_skeleton_xld (Skeleton, Contours, 1, 'filter')
    gen_cross_contour_xld (Crosses, XCoordCorners, YCoordCorners, 6, 0.785398)
    gen_disc_se (SE, 'byte', 300,300, 0)
    gen_ellipse (Ellipse, 200, 200, 0, 100, 60)
    gen_ellipse_contour_xld (ContEllipse, 135.5, 135.5, 0, 100, 50, 0, rad(360), 'positive', 1.5)
    gen_empty_region (EmptyRegion)
    gen_empty_obj (EmptyObject)
    gen_filter_mask (ImageFilterSS, 'laws_ss', 1.5, 512, 512)
    gen_gabor(Filter,1.4,0.4,1.0,1.5,'n','dc_edge',512,512)
    gen_gauss_filter (GaussFilter, 3.0, 3.0, 0.0, 'none', 'rft', Width, Height)
    gen_grid_region (Grid, MinSize, MinSize, 'lines', 512, 512)
    gen_image_const (Image, 'byte', 50, 50)
    gen_image_gray_ramp (ImageGrayRamp, 0.2, 0.2, 128, 256, 256, 512, 512)
    gen_image_proto (Image, Image, 164)
    gen_image_surface_first_order (ImageSurface, 'real', Alpha, Beta, Gamma, RowPlane, ColumnPlane, Width, Height)
    gen_image_to_world_plane_map (Map, CamParam, Pose, Width, Height, Width, Height, PixelDist, 'bilinear')
    gen_highpass (ImageHighpass, 0.1, 'none', 'dc_center', Width, Height)
    gen_lowpass (ImageLowpass, 0.1, 'none', 'dc_center', Width, Height)
    gen_measure_arc (CenterRow, CenterCol, Radius, AngleStart, AngleExtent, AnnulusRadius, Width, Height, Interpolation, MeasureHandle)        
    gen_measure_rectangle2 (TransRow, TransCol, Angle + RectRelPhi, RectLen1, RectLen2, Width, Height, 'bilinear', MeasureHandle)
    gen_polygons_xld (Contour, Polygons, 'ramer', 2)
    gen_projective_mosaic (ImagesRect, MosaicImage, 1, 1, 2, HomMat2D, 'default', 'false', MosaicMatrices2D)
    gen_radial_distortion_map(MapFixed,CamParOriginal,CamParVirtualFixed,'bilinear')
    gen_rectangle1 (Rectangle, 30, 20, 100, 200)
    gen_rectangle2 (Rectangle1, 300, 200, 15, 100, 20)
    gen_rectangle2_contour_xld (Contours, 0, 0, 0, Length, Width)
    gen_region_contour_xld (SelectedXLD, Region2, 'filled')
    gen_region_histo (Histo1, AbsoluteHisto1, 255, 255, 1)
    gen_region_hline (LinesHNF, Angle, Dist)
    gen_region_line (RegionLines1, RowB1, ColumnB1, RowB2, ColumnB2)
    gen_region_points (Region1, 100, 100)
    gen_region_polygon (Region, Rows, Cols)
    gen_region_runs (Region, 100, 50, 200)
    gen_sin_bandpass (ImageBandpass, 0.4, 'none', 'rft', Width, Height)
    get_calib_data (CalibDataID, 'camera', 0, 'params', CamParam)
    get_calib_data_observ_contours (Caltab, CalibDataID, 'caltab', 0, 0, I)
    get_calib_data_observ_points (CalibDataID, 0, 0, I, RCoord, CCoord, Index, StartPose)
    get_calib_data_observ_pose (CalibDataID, 0, 0, Index, ObjInCameraPose)
    get_contour_attrib_xld (SelectedXLD1, 'angle', Attrib)
    get_contour_global_attrib_xld (RegressContours, 'regr_norm_row',Attrib)
    get_contour_xld (SelectedXLD, Row, Col)
    get_current_dir (DirName)
    get_deformable_model_contours (ModelTempleContours, DeformableModelId, 1)
    get_domain (Image, Domain)
    get_grayval (ImagePart,10, 10, Grayval)
    get_line_of_sight ([Row1,Row2], [Col1,Col2], CamParam, X, Y, Z, XH, YH, ZH)
    get_image_pointer1 (Image, Pointer, Type, Width, Height)
    get_image_size (Image, Width, Height)
    get_mbutton (WindowID, Row, Column, Button)
    get_polygon_xld (Polygons, Row4, Col4, Length1, Phi1)
    get_region_points (RegionIntersection, Rows, Columns)
    get_region_runs (Region, Row, ColumnBegin, ColumnEnd)
    get_regress_params_xld (RegressContours, Length, Nx, Ny, Dist, Fpx, Fpy, Lpx, Lpy, Mean, Deviation)
    get_rgb (WindowHandle, Red, Green, Blue)
    get_shape_model_3d_params (ShapeModel3DID, 'cam_param', CamParam)
    get_shape_model_contours (ShapeModel, ModelID, 1)
    get_string_extents (WindowHandle, ScaleRowStr, AscentStr, DescentStr, WidthStr, HeightStr)
    get_surface_matching_result (SurfaceMatchingResultID, 'sampled_scene', [], SampledScene)
    get_text_object (Characters, TextResultID, 'all_lines')
    get_text_result (TextResultID, 'class', Classes)
    get_variation_model (MeanImage, VarImage, VariationModelIDs[I - 1])
    get_window_extents (WindowHandle, WndowRow, WindowColumn, WindowWidth, WindowHeight)
    grab_image (Image, AcqHandle)
    grab_image_async (Image, AcqHandle, -1)
    grab_image_start (AcqHandle, -1)
    gray_bothat (GrayImage, SE, ImageBotHat)
    gray_closing (GrayImage, SE, ImageClosing)
    gray_closing_rect (GrayImage, ImageClosing1, 50, 50)
    gray_closing_shape(GrayImage, ImageClosing2, 50, 50, 'octagon')
    gray_dilation (Image, SE, ImageDilation)
    gray_dilation_rect (Image, ImageMax, 20, 20)
    gray_dilation_shape (Image, ImageMax1, 20, 20, 'octagon')
    gray_erosion (Image, SE, ImageErosion)
    gray_erosion_rect (Image, ImageMin, 20, 20)
    gray_erosion_shape (Image, ImageMin1, 20, 20, 'octagon')
    gray_histo (Rectangle1, Image, AbsoluteHisto1, RelativeHisto1)
    gray_histo_abs (Image, Image, 8, AbsoluteHistoImage)
    gray_opening_rect (ImageClosing, ImageOpening, 6, 6)
    gray_range_rect (Image, ImageResult, 7, 7)
    gray_tophat (GrayImage, SE, ImageTopHat)
    

    highpass_image (EdgeAmplitude, Highpass, 9, 9)
    histo_to_thresh (RelativeHisto, 8, MinThresh, MaxThresh)
    hit_or_miss (Region, RegionBorder, RegionBorder1, RegionHitMiss, 92, 26)
    hom_mat2d_identity (HomMat2DIdentity)
    hom_mat2d_invert (HomMat2D, HomMat2DInvert)
    hom_mat2d_rotate (HomMat2DIdentity, -0.3, 256, 256, HomMat2DRotate)
    hom_mat2d_scale (HomMat2DRotate, 1.5, 1.5, 256, 256, HomMat2DScale)
    hom_mat2d_translate (HomMat2DScale, 32, 32, HomMat2DTranslate)
    hom_vector_to_proj_hom_mat2d (XCoordCorners, YCoordCorners, [1,1,1,1], [70,270,270,70], [100,100,300,300], [1,1,1,1], 'normalized_dlt', HomMat2D)
    hough_lines_dir (EdgeDirectionReduced, HoughImage, Lines, 4, 2, 'mean', 3, 25, 5, 5, 'true', Angle, Dist)
    

    inner_circle (ObjectSelected, CenterRow, CenterCol, RadiusMin)
    inner_rectangle1 (KnobFreeRegion, Row1, Column1, Row2, Column2)
    inspect_shape_model (ImageROI, ShapeModelImages, ShapeModelRegions, 8, 30)
    intersection (RegionLines, RegionLines1, RegionIntersection)
    intensity (Region, Image, Mean, Deviation)
    invert_image (GrayImage, ImageInvert)
    
    junctions_skeleton(Skeleton1, EndPoints, JuncPoints)
    
    kirsch_amp (Image, ImageEdgeAmp)
    
    laplace (Image, ImageLaplace, 'absolute', 3, 'n_4')
    laplace_of_gauss (Image, ImageLaplace, 5)
    length_xld (Contours, ContLength)
    line_orientation (RowB1, ColumnB1, RowB2, ColumnB2, Phi2)
    line_position (RowB1, ColumnB1, RowB2, ColumnB2, RowCenter, ColCenter, Length1, Phi3)
    lines_gauss (ImageReduced, LinesXLD, 0.9, 3, 5, 'light', 'false', 'bar-shaped', 'false')
    list_files ('C:/图像读取实例', ['files','follow_links'], ImageFiles)
    local_max(ImageReduced, LocalMaxima)
    local_min_max_funct_1d (SmoothedHistoFunction, 'strict_min_max', 'true', Minima, Maxima)
    local_threshold (ImageCombined, Region, 'adapted_std_deviation', 'dark', [], [])
    log_image (GrayImage, LogImage, 'e')
    

    map_image (Image, Map, ModelImageMapped)
    mean_image (ImageNoise, ImageMean, 9, 9)
    mean_n (Ic, ImageMean)
    measure_pairs (Image, MeasureHandle, 1, 30, 'positive_strongest', 'all', Row1, Col1, Amplitude1, Row2, Col2, Amplitude2, IntraDistance, InterDistance) 
    measure_pos (Image, MeasureHandle, 1.5, 30, 'all', 'all', RowEdge, ColumnEdge, Amplitude, Distance)
    median_image (Image, ImageMedian, 'circle', 2, 'mirrored')
    min_image (R, G, ImageMin)
    min_max_gray (Image, Image, 0, Min, Max, Range)
    moments_xld (Contour_triangle, M11, M20, M02)
    move_region (ROI, ROIMoved, Row1[I - 1], Column1[I - 1])
    mult_image (GrayImage, GrayImage1, ImageResult, 0.005, 0)
    

    open_framegrabber ('DirectShow', 1, 1, 0, 0, 0, 0, 'default', 8, 'rgb', -1, 'false', 'default', '[0] HD WebCam', 0, -1, AcqHandle)
    opening (Region, RegionErosion, RegionOpening)
    opening_circle (Region, RegionOpening, 9.5)
    opening_rectangle1 (Region, RegionOpening2, 1.5, 1.5)
    optimize_fft_speed (Width, Height, 'standard')
    optimize_rft_speed (Width, Height, 'standard')
    orientation_region (RegionLines1, Phi1)
    orientation_xld (Contour, Phi)
    

    paint_region (Region1, txImage, txImage, T0, 'fill')
    paint_xld (Contour, Image, ImageModel, 128)
    par_start<VThreads.at(0)> :
    partition_dynamic (RegionTrans1, Partitioned, 50, 10)
    partition_rectangle (CharBlocks, CharCandidates, 25, 100)
    phase_deg (ImageFFT, ImagePhase)
    points_foerstner (Image1, 1, 2, 3, 50, 0.1, 'gauss', 'true', Rows1, Columns1, CoRRJunctions, CoRCJunctions, CoCCJunctions, RowArea, ColumnArea, CoRRArea, CoRCArea, CoCCArea)
    pose_compose (CamInToolPose, ObjInCamPose, ObjInToolPose)
    pose_invert (ToolInCamPose, CamInToolPose)
    pose_to_hom_mat3d (Pose, HomMat3D)
    pow_image (GrayImage, PowImage, 2)
    prepare_variation_model (VariationModelID, 180, 6)
    prewitt_amp (Image, ImageEdgeAmp)
    proj_match_points_distortion_ransac (Image1, Image2, Rows1, Columns1, Rows2, Columns2, 'ncc', 10, 0, 0, Height, Width, 0, 0.5, 'gold_standard', 1, 42, HomMat2D, Kappa, Error, Points1, Points2)
    project_3d_point (X, Y, Z, CamParam, Row, Column)
    projective_trans_contour_xld (ModelTempleContours, TransContours, _TempHomMat2D)
    projective_trans_region (ModelWordRegion, WordRegion, _TempHomMat2D, 'bilinear')
    projective_trans_image (Image_slanted, Image_rectified, HomMat2D, 'bilinear', 'false', 'false')
    projective_trans_pixel (MosaicMatrices2D[9:17], [0,493], [0,0], RowTrans, ColumnTrans)
    project_shape_model_3d (ModelContours, ShapeModel3DID, CamParam, PoseTmp, 'true', rad(30))
    power_real (ImageFFT, ImageResult)
    
    query_contour_attribs_xld (SelectedXLD1, Attribs)
    query_contour_global_attribs_xld (ContCircle, Attribs)
    

    read_cam_par('campar.dat', CameraParam)
    read_class_mlp ( 'CuMLPHandle.map',CuMLPHandle)
    read_contour_xld_dxf(BackGroundCheckRegionContour,'TemplateNum.dxf', [], [], DxfStatus)
    read_deformable_model ('DeformableTemple.dfm', ModelId)
    read_ocr_class_mlp ('Industrial_0-9A-Z_NoRej.omc', OCRHandle)
    read_ocr_trainf_names (trainfile, CharacterNames, CharacterCount)
    read_ocv (Path, OCVHandle)
    read_pose ('scara_moving_cam_toolinbase_pose1.dat', ToolInBasePose1)
    read_region(ModelAroundCheckRegion,'AroundCheckRegion.reg')
    read_shape_model ('Fix.ncc', ModelIdShape)
    read_shape_model_3d ('tile_spacer.sm3', ShapeModel3DID)
    read_string (WindowID, 'Default', 32, OutString)
    read_variation_model (B_InvariableRegionTemple.shm', VariationModelID)
    rectangularity (Rectangle, Rectangularity)
    rectangle1_domain (Image, ImageReduced, 170, 280, 310, 370)
    reduce_domain (EdgeDirection, Region, EdgeDirectionReduced)
    region_features (RegionTran2, 'phi', angle)
    region_to_bin (Regions, BinImage, 255, 0, 512, 512)
    region_to_label (Regions, ImageLabel, 'int4', 512, 512)
    region_to_mean(Regions,Image,Disp)
    regiongrowing (DupImage, Regions, 3, 3, 1, 100)
    regress_contours_xld (ContCircle, RegressContours, 'no', 1)
    rft_generic (ImageConvol, ImageFiltered, 'from_freq', 'n', 'real', Width)
    rgb1_to_gray (Earth, GrayImage)
    rigid_trans_object_model_3d (ObjectModel3DModel, CPose, ObjectModel3DRigidTrans)
    roberts (Image, ImageRoberts, 'roberts_max')
    runlength_features (Region, NumRuns, KFactor, LFactor, MeanLength, Bytes)
    

    scale_image(image,ImageScal,0.1, 0)
    scale_image_max (Image, ImageScaleMax)
    segment_contours_xld (Border, ContoursSplit, 'lines',1, 4, 2)
    select_contours_xld (Border, SelectedContours, 'contour_length',1,200, -0.5, 0.5)
    select_obj (SelectedRegions, ObjectSelected,3)
    select_region_point(SelectedRegions, DestRegions, 1823, 1334)
    select_shape (Single, Selected, 'area', 'and', 5000, 10000)
    select_shape_proto (Regions, Pattern, SelectedRegions1, 'distance_center', 0, 200)
    select_shape_std (ConnectedRegions, SelectedRegions, 'max_area', 70)
    select_shape_xld (Edges, SelectedXLD, 'area', 'and', 3000, 99999)
    set_bar_code_param (BarCodeHandle, 'check_char', 'absent')
    set_calib_data (CalibDataID, 'tool', Index, 'tool_in_base_pose', ToolInBasePose)
    set_calib_data_cam_param (CalibDataID, 0, 'area_scan_division', StartCamPar)
    set_calib_data_calib_object (CalibDataID, 0, CaltabName)
    set_calib_data_observ_points (CalibDataID, 0, 0, 0, Error, Error, 'all', Error)
    set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
    set_framegrabber_param (AcqHandle, 'grab_timeout', 10000)
    set_grayval (ImagePart, 10, 10,255)
    set_line_style (WindowHandle, [1,5])
    set_ncc_model_param (ModelID, 'timeout', 5000)
    set_origin_pose (PoseCalibRot, -0.04, -0.03, 0.00075, Pose)
    set_rgb (WindowHandle, Red[0], Green[0], Blue[0])
    set_system ('neighborhood', 8)
    set_text_model_param (TextModel, 'min_contrast', 5)
    set_tposition (WindowID, 40, 40)
    shape_trans (RegionFillUp, RegionTrans, 'rectangle1')
    skeleton (Edges, Skeleton)
    smallest_rectangle1 (RegionTrans, Row1, Column1, Row2, Column2)
    smallest_rectangle1_xld (Contour_triangle, Row12, Column12, Row22, Column22)
    smallest_rectangle2(Contour_triangle, Row5, Column4, Phi2, Length11, Length2)
    smallest_rectangle2_xld (Contour_triangle, Row5, Column4, Phi2, Length11, Length2)
    smooth_funct_1d_gauss (HistoFunction, 4, SmoothedHistoFunction)
    sobel_amp (Image, EdgeAmplitude, 'sum_abs', 3)
    sobel_dir (ImageReduced, EdgeAmplitude, EdgeDirection, 'sum_abs', 3)
    sort_contours_xld (UnionContours1, SortedContours, 'upper_left', 'true', 'column')
    sort_region (Numbers, FinalNumbers, 'first_point', 'true', 'column')
    sp_distribution (5, 5, Distribution)
    split_contours_xld (Polygons, Contours, 'polygon', 1, 5)
    sub_image (ImageConverted1, ImageConverted2, ImageSub, 1, 0)
    

    test_self_intersection_xld (ContCircle1, 'true', DoesIntersect)
    text_line_orientation (Needle, Needle, 35, -0.523599, 0.523599, OrientationAngle)
    texture_laws (Lines, ImageTexture, 'el',3, 5)
    threshold (Clips, Dark, 0, 70)
    threshold_sub_pix (Image, Border, 128)
    tile_images (Concat, Combined, 2, 'vertical')
    tile_images_offset (MeanImages, MeanImage, Row1, Column1, gen_tuple_const(Number,-1),
    train_class_mlp (MLPHandle, 200, 1, 0.0001, Error, ErrorLog)
    trainf_ocr_class_mlp (OCRHandle, trainfile, 200, 1, 0.01, Error, ErrorLog)
    trans_from_rgb (image1, image1, image1, ImageResult1, ImageResult2, ImageResult3, 'hsv')
    train_variation_model (ImageTrans, ModelID)
    tuple_abs (len1max_rectsides-len1min_rectsides, Abslen1)
    tuple_find (Area, 0, ZerosIndices)
    tuple_gen_const (NumResult, 'green', Colors)
    tuple_length (Score, Length)
    tuple_max (len2, len2max)  
    tuple_min (len2, len2Min)
    tuple_regexp_match (BarcodeItemsToCompare, 'SN', SNPosition)
    tuple_regexp_select (ImageFiles, ['\.(tif|tiff|gif|bmp|jpg|jpeg|jp2|png|pcx|pgm|ppm|pbm|xwd|ima|hobj)$','ignore_case'], ImageFiles)
    tuple_replace (PoseCalib, 5, PoseCalib[5] - 90, PoseCalibRot)
    tuple_strstr (DirName, Modle, Position)
    tuple_str_bit_select (OcvText, WordNum, WordSelected)
    tuple_substr (DirName, 0, Position-2, Substring)
    

    union_adjacent_contours_xld (UnionContours1, UnionContours2, 10, 1, 'attr_keep')   
    union_collinear_contours_xld (LinesXLD, UnionContours, 50, 1, 4, 0.2, 'attr_keep')
    union_cocircular_contours_xld (RegionOpening1, UnionContours, 0.5, 0.1, 0.2, 30, 10, 10, 'true', 1)
    union1 (SelectedRegions, RegionUnion1)
    union2 (RegionUnion1, Region, RegionUnion)
    union2_closed_contours_xld (SelectedXLD1, SelectedXLD2, ContoursUnion)
    var_threshold (Image, Region, 15, 15, 1.0, 40, 'dark')
    vector_angle_to_rigid (0, 0, 0, RowCheck, ColumnCheck, AngleCheck, MovementOfObject)
    vector_field_to_real (ObjectSelected, DRow, DCol)
    visualize_object_model_3d (WindowHandle, ObjectModel3DModel, [], [], [], [], Message, [], Instructions, PoseOut)
    watersheds (SmoothedByte, Basins, Watersheds)
    watersheds_threshold (EdgeAmplitude, Basins2, 15)
    write_class_mlp (MLPHandle, 'classify_wood.gmc')
    write_contour_xld_dxf(BoundaryRegionContours,'./RegionContour.dxf')
    write_image (ImageScaleMax, 'bmp', 0, 'result/结果.bmp')
    write_ocr_class_mlp (OCRHandle, 'words.omc')
    write_ocr_trainf (EmptyObject, ImageAffinTrans, words, trainfile)
    write_pose(NFinalPose[0:6], 'campose.dat')
    write_region (BuffRegions, 'C:/Users/Administrator/Desktop/BuffRegions.reg')
    write_shape_model (ModelID, 'C:/Users/Administrator/Desktop/5X10/Tray_Fix.ncc')
    write_string (WindowID, '显示文字2')
    write_variation_model (ModelID, 'model.var')
    xyz_to_object_model_3d (Xm, Ym, Zm, ObjectModel3DModel)
    zero_crossing (ImageLaplace, RegionCrossing2)
    zero_crossings_funct_1d (Function, ZeroCrossings)
    zoom_image_factor (ImageSub, ImageZoomed, ScaleFactor, ScaleFactor, ‘constant’)
    zoom_image_size (VarImageBig, VarImageSmall, Width, Height, 'weighted')
    


    看了感觉怎么样?来说说吧。。。
    喜欢记得关注起来!赶紧的。


  • 相关阅读:
    ElasticSearch7.3学习(五)分布式及容错机制
    迟到的2022年展望及毕业一年半的总结
    ElasticSearch7.3学习(九)Mapping核心数据类型及dynamic mapping
    ElasticSearch7.3学习(一)采用restful风格 基本的增删查改语句
    ElasticSearch7.3学习(七)Mapping映射入门
    ElasticSearch7.3学习(三)采用restful风格 批量(bulk)增删改
    ElasticSearch7.3学习(四)结合Spring boot进行增删改查和批量(bulk)详解
    ubuntu 读取opc报错 java.net.UnknownHostException: qpc: 域名解析暂时失败
    ubuntu20.04 java读取opc服务端数据
    Windows10 搭建FTP服务 java连接
  • 原文地址:https://www.cnblogs.com/eyesonchip/p/13672704.html
Copyright © 2020-2023  润新知