halcon-gauss_filter高斯滤波

halcon-gauss_filter高斯滤波

在HDevelop中

2.png

halcon-gauss_filter高斯滤波

 

 

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)

halcon-gauss_filter高斯滤波

 

在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());

 

 

 

halcon-gauss_filter高斯滤波

上一篇:OkHttp的简单使用代码示例


下一篇:SpringBoot下载resource目录下的资源文件