read_image(Image, 'printer_chip/printer_chip_01')
get_image_size(Image, Width, Height)
dev_close_window()
dev_open_window(0, 0, Width/4, Height/4, 'black', WindowHandle)
dev_display(Image)
threshold(Image, Region, 128, 255)
*均值滤波
mean_image(Image, ImageMean, 35, 35)
dyn_threshold(Image, ImageMean, RegionDynThresh, 5, 'light')
dev_display(Image)
edges_sub_pix(Image, Edges, 'canny', 2, 20, 50)
*中值滤波
median_rect(Image, ImageMedian, 20, 20)
edges_sub_pix(ImageMedian, Edges1, 'canny', 1, 20, 40)
dev_display(Image)
*秩序滤波
rank_rect(Image, ImageRank, 15, 15, 1)
*高斯滤波,最后系数越大,滤波越强
gauss_filter(Image, ImageGauss, 11)
*图像平滑
smooth_image(Image, ImageSmooth, 'deriche1', 10)