📄 代码18-5.txt
字号:
I=imread('eight.tif'); % 读入图像
subplot(2,2,1),imshow(I); % 显示原始图像
title('Original image'); % 设置图像标题
J=imnoise(I,'gaussian',0,0.02); % 加白噪声,其平均值为0,方差为 0.02
subplot(2,2,2),imshow(J); % 显示处理后的图像
title('Gaussian'); % 设置图像标题
K=imnoise(I,'salt & pepper',0.02); % 这里的噪声密度为 0.02
subplot(2,2,3),imshow(K); % 显示处理后的图像
title('salt & pepper'); % 设置图像标题
L=imnoise(I,'poisson') ; % 产生 Poisson 分布,而不是人为的加入噪声
subplot(2,2,4),imshow(L); % 显示处理后的图像
title('poisson') % 设置图像标题
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -