(1) 选择一幅图像,叠加零均值高斯噪声,然后分别利用领域平均法和中值滤波法对该图像进行滤波,显示滤 10
(1)选择一幅图像,叠加零均值高斯噪声,然后分别利用领域平均法和中值滤波法对该图像进行滤波,显示滤波后的图像,比较个滤波结果。那个好心人给我matlab的程序最好连图片也...
(1) 选择一幅图像,叠加零均值高斯噪声,然后分别利用领域平均法和中值滤波法对该图像进行滤波,显示滤波后的图像,比较个滤波结果。那个好心人给我matlab的程序最好连图片也给我以免出错,
展开
展开全部
领域岁岁游法乎销:y=imread('D:\ABC.jpg');
J1=imnoise(y,'salt & pepper',0.02);
J2=imnoise(y,'gaussian');
H1=ones(3,3)/9;
Y=imfilter(y,H1);
Y1=imfilter(J1,H1);
Y2=imfilter(J2,H1);
subplot(2,2,1),imshow(Y);
subplot(2,2,2),imshow(Y1);
subplot(2,2,3),imshow(Y2);
中值法
y=imread('D:\ABC.jpg');
J1=imnoise(y,'salt & pepper',0.02);
J2=imnoise(y,'gaussian'雀丛,0.02);
subplot(2,2,1),imshow(J1);
subplot(2,2,2),imshow(J2);
y1=medfilt2(J1,[5,5]);
y2=medfilt2(J2,[5,5]);
subplot(2,2,3),imshow(y1);
subplot(2,2,4),imshow(y2);
J1=imnoise(y,'salt & pepper',0.02);
J2=imnoise(y,'gaussian');
H1=ones(3,3)/9;
Y=imfilter(y,H1);
Y1=imfilter(J1,H1);
Y2=imfilter(J2,H1);
subplot(2,2,1),imshow(Y);
subplot(2,2,2),imshow(Y1);
subplot(2,2,3),imshow(Y2);
中值法
y=imread('D:\ABC.jpg');
J1=imnoise(y,'salt & pepper',0.02);
J2=imnoise(y,'gaussian'雀丛,0.02);
subplot(2,2,1),imshow(J1);
subplot(2,2,2),imshow(J2);
y1=medfilt2(J1,[5,5]);
y2=medfilt2(J2,[5,5]);
subplot(2,2,3),imshow(y1);
subplot(2,2,4),imshow(y2);
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询