全文预览

数字水印技术lsb算法matlab源代码

上传者:火锅鸡 |  格式:doc  |  页数:5 |  大小:32KB

文档介绍
ise=============================NoiseWatermarked=watermarked_image;NoiseImage=imnoise(NoiseWatermarked,'gaussian',0.001);figure(12);colormap(gray(256));imshow(NoiseImage);title('noiseImage');imwrite(NoiseImage,gray(256),'noiseImage.bmp');MSw=size(NoiseImage,1);?%HeightNSw=size(NoiseImage,2);?%Width%uselsbofwatermarkedimagetorecoverwatermarkforii=1:MSwforjj=1:NSwRecoveryNoiseWatermarked(ii,jj)=bitget(NoiseImage(ii,jj),1);endend%scaletherecoveredwatermarkRecoveryNoiseWatermarked=2*double(RecoveryNoiseWatermarked);psnrNoise=psnr(RecoveryWatermark,RecoveryNoiseWatermarked)figure(13);colormap(gray(256));imshow(RecoveryNoiseWatermarked,[])title('RecoveryNoiseWatermarked');%%=====================================================================%displayprocessingtimeelapsed_time=cputime-start_time,

收藏

分享

举报
下载此文档