In digital images enhancement processing, histogram matching can change the histogram of a given image into specific appearance, so it can enhance the contrast of the pixels of one gray range selectively to get the best optical effect. In this progress the most important work is the mapping law from original histogram to matching histogram. One group mapping law-GAGML is given in this thesis, it can realize the histogram matching mapping.