www.pudn.com > LBG_GA.rar > normlization.m, change:2011-04-11,size:265b


function  intout=normlization(x) 
% x=rand(16,639); 
m=size(x,1); 
n=size(x,2); 
f_dim=zeros(1,n); 
xx=zeros(m,n); 
for i=1:m 
    f_dim(1,:)=x(i,:); 
    f_dim=round((f_dim-min(f_dim))/(max(f_dim)-min(f_dim))*255); 
    xx(i,:)=f_dim; 
end 
intout=xx; 
end