急求中值滤波器的matlab算法代码
急求中值滤波器的matlab算法代码
日期:2022-03-29 01:37:48 人气:1
I=imread('D:\picture.jpg');
figure;
imshow(I);
K=imnoise(I,'gaussian',0.02);%加噪声
figure;
imshow(K);
g=medfilt2(K);%中值滤波
figure;
imshow(g);
figure;
imshow(I);
K=imnoise(I,'gaussian',0.02);%加噪声
figure;
imshow(K);
g=medfilt2(K);%中值滤波
figure;
imshow(g);