中值滤波VS.均值滤波

如果不是算法中用到了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.
  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值