Abstract:Stereo matching has always been the fo cus and difficulty in the field of binocular vision.To solve the problems of poor edge retention and low matchi ng accuracy of existing stereo matching algorithms,a stereo matching algorithm based on secondary weighted guided filtering fusion double color model (SWGF) is proposed.Firstly,a dual color space model is proposed in the cost calculation stage,which calculates the pixel color matching cost from two color spaces and enhances the characteristics of pixels in low texture area Then,in the cost aggregation stage,based on HSV color space,an edge preserving term is add ed by using different pixel textures in different windows,so that the regulariz ation parameters can be adjusted adaptively.After a guided filtering,we use Ha mming distance and initial disparity obtained from Census transform to complete a cost update,and then aggregate the cost.Then we calculate the disparity and optimize the disparity by left-right consistency detection,hole filling and we i ghted median filtering.Finally,we get the disparity map.The test results of t his algorithm on Middlebury test platform show that the mismatching rate of SWGF algorithm is only 4.61%,which can greatly improve the accuracy of stereo match ing and enhance its edge retention.