www.pudn.com > Transforms.rar > Normalization.m, change:2005-05-17,size:630b


function multi = Normalization(nRow,nColumn) 
 
global nlevel; 
 
level = nlevel; 
 
multi = ones(nRow,nColumn); 
 
multi_temp = 2 * multi; 
 
while level, 
 
    for i = nRow/2 + 1 : nRow, 
         
        for j = nColumn/2 + 1 : nColumn, 
 
            multi_temp(i,j) = multi_temp(i,j) / 2; 
 
        end 
         
    end 
     
    nRow = nRow/2; 
     
    nColumn = nColumn/2; 
     
    for i = 1 : nRow, 
         
        for j = 1 : nColumn, 
 
            multi_temp(i,j) = 2 * multi_temp(i,j); 
             
        end 
         
    end 
     
    level = level - 1; 
     
end 
 
multi = multi_temp; 
 
return