- 10
- 0
- 约2.14千字
- 约 7页
- 2015-10-25 发布于浙江
- 举报
第 5 章 图像平滑滤波在MATLAB上的实现
本课程设计在MATLAB上实现的程序和结果
I=imread(b.bmp);
v=0.5*ones(size(I));
I1=imnoise(I,localvar,v);
I2=imnoise(I,salt pepper,0.02);
I3=imnoise(I,speckle,0.02);
figure;
subplot(221);
hold on;
title(原图像);
imshow(I);
hold off;
subplot(222);
hold on;
title(受高斯噪声污染的图像);
imshow(I1);
hold off;
subplot(223);
hold on;
title(受椒盐噪声污染的图像);
imshow(I2);
hold off;
subplot(224);
hold on;
title(受乘性噪声污染的图像);
imshow(I3);
hold off;
h=ones(3,3)/9;
J1=imfilter(I1,h);
J2=imfilter(I2,h);
J3=imfilter(I3,h);
figure;
subplot(221);
hold on;
title(原图像);
imshow(I);
hold off;
subplot(222);
hold on;
title(对有高斯噪声
原创力文档

文档评论(0)