www.pudn.com > code.zip > cuowu.m, change:2014-05-20,size:257b


%ͳƴ 
function [T,J]=cuowu(I11,I22,N,L) 
T=0; 
J=0; 
for i=1:N 
   for j=1:L 
        if (I11(i,j)==0&&I22(i,j)==255)%© 
             T=T+1; 
        elseif (I11(i,j)==255&&I22(i,j)==0)% 
             J=J+1; 
        end 
    end 
end 
end