Week_3_Lec_02_Code.m
I = imread('eight.tif');
J = imnoise(I, 'salt & pepper', 0.09);
K = medfilt2(J);
figure, imshow(I); figure, imshow(J); figure, imshow(K);
Week_3_Lec_10_Code.m
I = imread('eight.tif');
J = imnoise(I, 'salt & pepper', 0.09);
K = medfilt2(J);
figure, imshow(I); figure, imshow(J); figure, imshow(K);
Week_3_Lec_12_Code.m
I = imread('eight.tif');
J = imnoise(I, 'salt & pepper', 0.09);
K = medfilt2(J);
figure, imshow(I); figure, imshow(J); figure, imshow(K);
figure, imshow(I-K); figure, imshow((I-K).^(2));
Week_04_Lec_03_Code.m
RGB = imread('saturn.png');
I = rgb2gray(RGB);
I2G = imnoise(I,'gaussian', 0.02);
I2 = imnoise(I,'salt & pepper', 0.02);
I20 = imnoise(I,'salt & pepper', 0.2);
figure, imshow(RGB);
figure, imshow(I);
figure, imshow(I2G);
figure, imshow(I2);
figure, imshow(I20);
Week_04_Lec_08_Code.m
RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian', 0, 0.005);
K = wiener2(J, [10, 10]);
H = fspecial('disk', 10);
blurred = imfilter(J, H, 'replicate');
figure, imshow(RGB);
figure, imshow(I);
figure, imshow(J);
figure, imshow(H);
figure, imshow(blurred);
figure, imshow(K);
Week_04_Lec_08_Code.m
RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian', 0, 0.005);
K = wiener2(J, [10, 10]);
H = fspecial('disk', 10);
blurred = imfilter(J, H, 'replicate');
figure, imshow(RGB);
figure, imshow(I);
figure, imshow(J);
figure, imshow(H);
figure, imshow(blurred);
figure, imshow(K);
Week_04_Lec_08_Code.m
RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian', 0, 0.005);
K = wiener2(J, [10, 10]);
H = fspecial('disk', 10);
blurred = imfilter(J, H, 'replicate');
figure, imshow(RGB);
figure, imshow(I);
figure, imshow(J);
figure, imshow(H);
figure, imshow(blurred);
figure, imshow(K);
本文分享自 图像处理与模式识别研究所 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!