为图像添加噪声

直接使用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('添加高斯噪声');

猜你喜欢

转载自blog.csdn.net/weixin_43914278/article/details/89069083