Semi-fragile spatial watermarking based on lbp operators

by

 

04 Nov 2013 (Updated )

Water Marking

logoextracte=extractie(img_input)
function logoextracte=extractie(img_input)
s_p=zeros(3,3);
s_piew=zeros(1,5);
lena_water=int16(img_input);
watermarke=zeros(64,64);
block2=zeros(3,3);
for i=3:3:192
    for j=3:3:192
        
        for k=0:2
            for l=0:2
                lena_c1=lena_water(i+1,j+1);
                block2(k+1,l+1)=lena_water(i+k,j+l);
                s_p(k+1,l+1) = Sng(block2(k+1,l+1),lena_c1);
                
            end
        end
        
        clear h
        for h=2:2:9
            
            s_piew((h)/2)=s_p(h);
            
        end
        s_piew(5)=1;
        f_xorwate=0;
        
        for k=1:5
            s_xe= s_piew(k);
            f_xorwate = xor(f_xorwate,s_xe);
            
        end
        if (f_xorwate==1)
            watermarke(i/3,j/3)=1;
        else
            watermarke(i/3,j/3)=0;
        end
    end
end
logoextracte=watermarke;

Contact us