資源簡介
數字圖像的加噪去噪,高斯噪聲、椒鹽噪聲,均值濾波、中值濾波、維納濾波。
代碼片段和文件信息
x=imread(‘01.jpg‘);
I=rgb2gray(x);
subplot(331);imshow(I);title(‘原始圖像‘);
J1=imnoise(I‘gaussian‘00.02);?
subplot(332);imshow(J1);title(‘加入高斯噪聲后‘);
J2=imnoise(I‘salt?&?pepper‘0.02);
subplot(333);imshow(J2);title(‘加入椒鹽噪聲后‘);
K1=filter2(fspecial(‘average‘5)J1)/255;
subplot(334);imshow(K1);title(‘均值濾波去高斯噪聲‘);
K2=medfilt2(J1);
s
- 上一篇:隨機相位正弦波仿真實驗MATLAB程序
- 下一篇:Goldstein_Filter
評論
共有 條評論