资源简介
数字水印 攻击 添加噪声matlab代码白噪声 乘性噪声 椒盐噪声
代码片段和文件信息
clear all;
% read in watermarked image
file_name=‘lsb_watermarked.bmp‘;
Y=imread(file_name);
%加噪
Y=uint8(Y);
CX=imnoise(Y‘speckle‘0.005); %高斯‘gaussian‘0-0.010-0.02 %椒盐‘salt & pepper‘0.010.030.05 %乘积性‘speckle‘0.020.040.06
GS=imnoise(Y‘gaussian‘0.005);
JY=imnoise(Y‘salt & pepper‘0.005);
CX=double(CX);
figure(1);
imshow(CX[]);
titl
评论
共有 条评论