www.gusucode.com > A demo for Image Decolorization 工具箱matlab源码程序 > A demo for Image Decolorization/DHVcode/Normalization.m
function re_img = Normalization( img ) % ´Ë´¦ÏÔʾÏêϸ˵Ã÷ [nu_lines,nu_rows,nu_bands]=size(img); re_img=reshape(img,nu_lines*nu_rows,nu_bands); re_img=scale_new(re_img); re_img=reshape(re_img,[nu_lines nu_rows,nu_bands]); end