加权均值滤波算法对于被椒盐噪声污染的图像有较好的滤波效果,但是影响这类算法滤波效果的因素有很多,比如选用不同滤波窗口的滤波效果差别较大。提出一种自适应六边形窗口,该窗口在水平方向采用的像素数多于垂直方向,在滤波过程中对水平方向和垂直方向的侧重有所不同。实验结果表明,算法对水平(或垂直)方向像素关联度强的图像滤波效果优于一般窗口。
The weighted average filtering algorithm has good filtering effect to the image polluted by the salt-and-pepper noise, but there is a number of factors that influence the effect of this algorithm, for example choosing different filtering window has greater difference on the effect of filter. In this paper, there is a kind of adaptive hexagon window whose pixels in a horizontal direction are more than vertical direction, so the impact is different on the horizontal and vertical direction in the filtering process. The experimental results show that the filtering effect is better than general window to the image that has stronger pixel correlation on the level direction(or vertical direction).