直接使用gaussian噪声为图像添加噪声
为图像添加不同的噪声
I=imread('cameraman.tif');
I=imdouble(I);
figure;subplot(121);imshow(I);
title('原始图像');
subplot(122);imhist(I);
title('原始图像的直方图');
J=imnoise(I,'gaussian',0,0.015);
figure;subplot(121);imshow(J);
title('添加高斯噪声');
直接使用gaussian噪声为图像添加噪声
为图像添加不同的噪声
I=imread('cameraman.tif');
I=imdouble(I);
figure;subplot(121);imshow(I);
title('原始图像');
subplot(122);imhist(I);
title('原始图像的直方图');
J=imnoise(I,'gaussian',0,0.015);
figure;subplot(121);imshow(J);
title('添加高斯噪声');