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


w=imread('e.jpg'); 
w=rgb2gray(w); 
w1=imresize(w,[64,64]); 
w2=w1; 
for i=1:64 
    for j=1:64 
        if w1(i,j)>254 
            w2(i,j)=1; 
        else 
            w2(i,j)=0; 
        end 
    end 
end 
w2=mat2gray(w2); 
imshow(w2); 
imwrite(w2,'m5.bmp');