www.pudn.com > Arnold.rar > duohide.m, change:2014-07-11,size:792b


w=imread('3.jpg'); 
m1=imread('m1.bmp'); 
for i=1:64 
    for j=1:64 
        if m1(i,j)==255 
            m1(i,j)=1; 
        else 
            m1(i,j)=0; 
        end 
    end 
end 
 
 
m2=imread('m2.bmp'); 
for i=1:64 
    for j=1:64 
        if m2(i,j)==255 
            m2(i,j)=1; 
        else 
            m2(i,j)=0; 
        end 
    end 
end 
m3=imread('m3.bmp'); 
for i=1:64 
    for j=1:64 
        if m3(i,j)==255 
            m3(i,j)=1; 
        else 
            m3(i,j)=0; 
        end 
    end 
end 
m4=imread('m4.bmp'); 
for i=1:64 
    for j=1:64 
        if m4(i,j)==255 
            m4(i,j)=1; 
        else 
            m4(i,j)=0; 
        end 
    end 
end 
 
 
u=w; 
WI=hide(u,m1); 
 
WI1=hide(WI,m2); 
WI2=hide(WI1,m3); 
WI3=hide(WI2,m4); 
 
imwrite(WI3,'WI.bmp');