其他分享
首页 > 其他分享> > halcon-gauss_filter高斯滤波

halcon-gauss_filter高斯滤波

作者:互联网

在HDevelop中

2.png

 

 

read_image (Image, 'D:/bb/tu/2.png')
gauss_filter (Image, ImageGauss, 9)
*高斯滤波
*参数3:过滤器大小;建议值: 3, 5, 7, 9, 11

dev_open_window(0,0,254,252,'black',WindowHandle)
dev_display(ImageGauss)

 

在Qt Creator中

    HObject  ho_Image, ho_ImageGauss;
    HTuple  hv_WindowHandle;
    ReadImage(&ho_Image, "D:/bb/tu/2.png");
    GaussFilter(ho_Image, &ho_ImageGauss, 9);
      //高斯滤波
      //参数3:过滤器大小;建议值: 3, 5, 7, 9, 11

    SetWindowAttr("background_color","black");
    OpenWindow(0,0,254,252,0,"visible","",&hv_WindowHandle);
    HDevWindowStack::Push(hv_WindowHandle);
    if (HDevWindowStack::IsOpen())
      DispObj(ho_ImageGauss, HDevWindowStack::GetActive());

 

 

 

标签:Image,hv,gauss,halcon,filter,ho,ImageGauss,WindowHandle,png
来源: https://www.cnblogs.com/liming19680104/p/15934420.html