在HDevelop中
5.png
read_image (Image, 'D:/bb/tu/5.png') equ_histo_image (Image, ImageEquHisto) *直方图均衡化 *作用:增强对比度 dev_open_window(0,0,546,370,'black',WindowHandle) dev_display(Image) dev_open_window(0,0,546,370,'black',WindowHandle1) dev_display(ImageEquHisto)
在QtCreator中
HObject ho_Image, ho_ImageEquHisto;
HTuple hv_WindowHandle;
ReadImage(&ho_Image, "D:/bb/tu/5.png"); EquHistoImage(ho_Image, &ho_ImageEquHisto); //直方图均衡化 //作用:增强对比度 SetWindowAttr("background_color","black"); OpenWindow(0,0,546,370,0,"visible","",&hv_WindowHandle); DispObj(ho_ImageEquHisto, hv_WindowHandle);