A new algorithm of gray-scale matching is presented in this paper.It is improved on the base of the normalized pattern algorithm.According to the quantity of the information,a part of the image is chosen to execute the gerenal matching,then an accurate matching is executed using the correlation coefficient.The experiment indicates that the precision of the method improved in the paper is higher than any others,and the velocity is fast too.