*灰度直方图
read_image (Image, 'can.png')
get_image_size (Image, Width, Height)
dev_close_window ()
dev_open_window_fit_size (0, 0, Width, Width, -1, -1, WindowHandle)
*dev_display (Image)
rgb1_to_gray (Image, GrayImage)
dump_window (WindowHandle, 'bmp', 'D:1/original')
gray_histo (GrayImage, GrayImage, AbsoluteHisto, RelativeHisto)
gen_region_histo (Region, RelativeHisto, 255, 255, 1)
*直方图均衡化
equ_histo_image (GrayImage, ImageEquHisto)
dump_window (WindowHandle, 'bmp', 'D:1/equ_result')
gray_histo (Region, ImageEquHisto, AbsoluteHisto1, RelativeHisto1)
gen_region_histo (Region1, AbsoluteHisto1, 255, 255, 1)
函数:
gray_histo (Region, ImageEquHisto, AbsoluteHisto1,RelativeHisto1)
equ_histo_image (GrayImage, ImageEquHisto)