www.pudn.com > watermarking-with-Hus-moments.rar > main.m, change:2015-06-28,size:544b


clc; 
clear all; 
[filename,pathname]=uigetfile('*','select file'); 
f=imread([pathname,filename]); 
f=imresize(f,[400 400]); 
F=ipl_find_circle(f);%bedast ovardan bozorgtarin daire tasvir 
h=phiforregin(F);c=zeros(1,7); 
maxh=max(h);minh=min(h);  
for i=1:7 
    c(i)=floor(((h(i)-minh)/(maxh-minh))*400); 
     
end 
H=zeros(7,7); 
 
for i=1:7 
    H1 = phiforregin((calcir(f,c(i)))); 
    H(i,:)=H1; 
end 
 
C=bitget(h,1); 
S=bitget(H,1); 
s2=zeros(7,7); 
for i=1:7 
s2(i,:)=bitxor(C,S(i,:)); 
end 
 
water(s2,c,f); 
namayesh7nahieh(f,c)