精选优质文档-倾情为你奉上function dwtg1clear all;clc;%保存开始时间start_time=cputime;figure(1);%读出原始图像subplot(1,3,1);input=imread(31310.bmp);imshow(input);title(原始图像);%读出水印subplot(1,3,2);water=imread(华侨大学256bmp.bmp);imshow(water,);title(水印);%三色分离input=double(input);water=double(water);inputr=input(:,:,1);waterr=water(:,:,1);inputg=input(:,:,2);waterg=water(:,:,2);inputb=double(input(:,:,3);waterb=double(water(:,:,3);%系数r大.增加鲁棒性,r小增加透明性r=0.06;%水印R的分解Cwr,Swr=WAVEDEC2(