The document presents a local-based stereo matching algorithm developed to improve depth estimation and disparity map accuracy using improved sum of absolute RGB differences and gradient matching, combined with bilateral filtering. Experimental validation demonstrates that the proposed method significantly enhances accuracy, especially in preserving object boundaries, and ranks competitively against existing methods on the Middlebury benchmark dataset. The algorithm effectively addresses challenges in matching low-texture regions and occluded areas, producing reliable disparity maps for various image characteristics.