从图像中去除胡椒噪声和盐噪声 [英] Removing pepper noise and salt noise from images

查看:869
本文介绍了从图像中去除胡椒噪声和盐噪声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Matlab中尝试处理具有盐噪声和胡椒噪声的图像。

I am trying to process images with salt noise and pepper noise in Matlab.

哪个过滤器: median 打开 code>关闭执行最好的去除盐噪声(白色像素)?

Which filter: median, opening, or closing performs the best in removing salt noise (white pixels)?

哪种最适合胡椒噪声(黑色像素)?

Which one is the best for pepper noise (black pixels)?

推荐答案

打开 dilation 侵蚀。这意味着它是侵蚀,然后是扩张。什么侵蚀意味着,如果我们有一个 3 X 3矩阵的结构化元素,中心像素将被中最暗的像素替换, 3 X 3 neighborhood 。开口是侵蚀,接着是膨胀,这使得完美地去除盐噪声(白点)并确保关键特征相对锋利。

Opening - is the composite function of dilation and erosion. That means that it is erosion followed by dilation. What erosion means is that if we have a structuring element that is a 3 X 3 matrix, the central pixel will be replaced by the darkest pixel in the 3 X 3 neighborhood. Opening is erosion followed by dilation which makes it perfect for removing salt noise (white dots) and ensuring that the key features are relatively sharp.

关闭是扩张,然后是侵蚀。扩展意味着中心像素将被附近的最亮像素(滤波器结构元素)替换。 完美的去除辣椒噪音,并确保主要功能相对清晰。

Closing is dilation followed by erosion. Dilation means that the central pixel will be replaced by the brightest pixel in the vicinity (filter structural element). Perfect for removing pepper noise and ensuring that the key features are relatively sharp.

这篇关于从图像中去除胡椒噪声和盐噪声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆