The Chang'e-2(CE-2) satellite is equipped with a three-line Charge-coupled Device (CCD) stereo camera with a resolution of 7 meters. Through the camera's linear array scanning images, the stereoscopic images transmitted by CE-2 are processed. The results obtained from the processing can theoretically build a digital elevation model (DEM) with a resolution better than 10 meters. In this paper, an image matching algorithm is proposed as a code link of the built DEM, which can obtain homonymy image points with high accuracy. In view of the acquired CCD image data, the essay introduces the Wavelet Pyramid stratified matching algorithm to process the modified data. In the whole matching process, the feature points of the image are extracted with the Forstner, Moravec, and Harris operators based on gray features, which are then processed by the hierarchical matching algorithm of the wavelet pyramid. The proposed algorithm reduces the error rate of image matching and shortens the matching time and searching time of the non-homonymous image points. CCD image data simulation experiments show that the algorithm can reduce the error rate to 10.38%.