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