`
loyuloyulo
  • 浏览: 32829 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

中值滤波和均值滤波(转)

 
阅读更多

中值滤波和均值滤波(转)
2010年07月09日
  如果不是算法中用到了median filter,恐怕我还不没有意识到这两个有联系又有区别的概念。中值滤波是median filter,均值滤波是mean filter,二者的用途也很接近,就是把信号抹平,消除噪声。不过区别还是有的,后面再说。
  如果把他们两个放在一起,看到名字就大概能猜出二者的不同,二者的区别就在于一个用均值,一个用中值。而滤波的方法是一样的,都是用一个窗滑过信号,用均 值或者中值去取代窗口中心位置的值。下面这个图能比较形象的表示两种滤波的不同,可以看出,均值滤波抹的比较厉害,而中值滤波则能保留信号的细节。
  
  
  
  (from:http://rkb.home.cern.ch/rkb/AN16pp/node168.html)
  关于中值滤波的好处,HIPR还有这两点说法:
  The median is a more robust average than the mean and so a single very unrepresentative pixel in a neighborhood will not affect the median value significantly.
  Since the median value must actually be the value of one of the pixels in the neighborhood, the median filter does not create new unrealistic pixel values when the filter straddles an edge. For this reason the median filter is much better at preserving sharp edges than the mean filter.
  本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/qhan/archive/2006/03/13/622727.aspx
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics