在标准中值滤波算法的基础上提出了基于聚类方法的滤波算法,该算法除了考虑当前像素和邻域组成的序列的统计特征之外,还考虑到了该序列的结构性特征。首先将该序列分成两类,然后计算当前像素所在的类别的中值作为滤波器的输出。该算法还设计了高低两个阈值来界定中值和均值之间的绝对差的范围,当绝对差属于不同的范围时采用不同的处理方法。最后使用了一些典型例子来说明该方法的去噪效果比标准的方法要更好一些。
A modified median filter algorithm based on clustering method is presented in this paper.At first,the computation of median,mean of the series composed by the current pixel and its neighbors is necessary to estimate the distribution of the seties,which is utilized to decide the classification method.Then,the series is classified into two classes with clustering method or fast classification method,and the median of the class which includes the current pixel is chosen as the result.Two parameters(T1 and T2 ) are used for the consideration of speed and accuracy.Some examples are given to prove the new algorithm can get better noise reduction effect.