图像滤波作用:
去除图像中的干扰(噪声),噪声一般是由外界干扰产生的,比如灰尘、热噪声等
均值滤波:对于模糊图像以及图像内部的噪声具有很好的作用
中值滤波:对单个噪声具有很好的平滑作用,特备是椒盐噪声
高斯滤波:根据高斯函数,考虑权重的滤波,远处的像素对目标影响越来越小
导向滤波:对于边缘具有很好的保持作用,同时能够对其他地方去除噪声, 很受欢迎且常用
dev_open_file_dialog ('read_image', 'default', 'default', Selection)
read_image (Image, Selection)
*均值滤波
mean_image (Image, ImageMean, 25,25)
*中值滤波
median_image (Image, ImageMedian, 'circle', 7, 'mirrored')
*添加噪声
add_noise_white (Image, ImageNoise, 10)
*中值滤波
median_image (ImageNoise, ImageMedian1, 'circle', 3, 'mirrored')
*高斯滤波
gauss_filter (ImageNoise, ImageGauss, 5)
*导向滤波
guided_filter (ImageNoise, ImageNoise, ImageGuided, 3, 20)
效果图: