分别使用二维统计滤波对椒盐噪声和高斯噪声进行滤波
2012-04-25 09:43
435 查看
function FuShiPengZhang I=imread('C:\Users\user\Desktop\data\Gabor-1-120\2-1.jpg'); J1=imnoise(I,'salt & pepper',0.004); subplot(2,3,1);imshow(I); title('原始图像'); subplot(2,3,2);imshow(J1); title('加椒盐噪声后的图像'); J= ordfilt2(J1,5,ones(3,4));% 进行二维统计顺序过滤 subplot(2,3,3);imshow(J); title('椒盐噪声滤波后的图像'); J2=imnoise(I,'gaussian',0,0.004); subplot(2,3,4);imshow(J2); title('加高斯噪声后的图像'); J3= ordfilt2(J2,5,ones(3,4)); subplot(2,3,5);imshow(J3); title('高斯噪声滤波后的图像'); end
相关文章推荐
- 图像处理中的线性滤波算法与非线性滤波算法的区别、高斯噪声与椒盐噪声的区别及各自的特点
- 给图像加高斯噪声和椒盐噪声(不使用自带函数)matlab实现
- PCL中使用直通滤波器对点云进行滤波处理
- 使用Actor模型对词频统计程序进行多线程优化
- 使用MATLAB中的HDL coder工具箱,对一个线性调频信号进行FIR滤波,最终在FPGA上实现
- SQL SERVER2000教程-第五章 处理数据 第十九节 使用DECLARE 语句进行数据统计
- 用不同的滤波器对不同强度的噪声进行滤波处理
- 使用 Google Analytics 对 iPhone/iPad 应用进行统计和分析
- 使用真机进行IOS功能测试代码覆盖率统计
- 使用C#和Excel进行报表开发(二)-操作统计图(Chart)
- 数据预处理(2)—— One-hot coding 独热编码#分别使用 pandans.dummies 和 sklearn.feature_extraction.DictVectorizer 进行处理
- 给图像添加椒盐噪声之后用均值滤波和中值滤波过滤图像!
- 分别按照 日期:时: 天:月:年进行统计信息
- 如何使用PowerBI将文件夹的内容中的所有文件合并为一张表进行统计
- 使用Directory.GetFiles,如何按文件名,扩展名,创建时间分别进行升序或降序排序
- 分词统计(一)使用讯飞语言云进行统计
- 使用MATLAB中的HDL coder工具箱,对一个线性调频信号进行FIR滤波,最终在FPGA上实现
- Spark 实战,第 3 部分: 使用 Spark SQL 对结构化数据进行统计分析
- linux下使用awk,wc,sort,uniq,grep对nginx日志进行分析和统计
- 使用C#和Excel进行报表开发(二)-操作统计图(Chart)