Abstract��Two algorithms are proposed in this article to improve the matching of stereo image pairs. One is the improved algorithm of adaptive image window. Compared with the previous rectangle image window, the new image window obtained by the improved algorithm includes more intensity variations in low texture areas. It becomes more effective to make the new image window approach the real edge of a certain texture area in the stereo image pairs. The other is the improved algorithm in edge pixel areas, which is used to enhance the correction rate of matching the edge pixels by decreasing the Corr (color correlation measurement) of the edge pixels. These two algorithms are investigated by matching four stereo images (Tsukuba, Venus, Teddy and Cones) with ground truth provided in Middlebury stereo database.