精选优质文档-倾情为你奉上嵌入代码:Picture=imread(yang.bmp); %读入载体图像Double_Picture=Picture;Double_Picture=double(Double_Picture);%将图像转换为二进制wen.txt_id=fopen(wen.txt,r); %读取秘密信息文件msg,len=fread(wen.txt_id,ubit1);m,n=size(Double_Picture);p=1; %p 为秘密信息的位计数器for f2=1:nfor f1=1:mDouble_Picture(f1,f2)=Double_Picture(f1,f2)-mod(Double_Picture(f1,f2),2)+msg(p,1);%将秘密信息按位隐藏入连续的像素中if plenp=p+1;endendif p=lenbreak;endendDouble_Picture=uint8(Double_Picture);imwrit