This document proposes a stereo matching algorithm utilizing census transform and segment tree for depth estimation, applicable in fields like augmented reality and autonomous vehicle navigation. The algorithm comprises four main steps: matching cost computation, cost aggregation, optimization with a winner-takes-all strategy, and post-processing with a weighted median filter, ultimately achieving competitive error rates in disparity mapping. Experimental results indicate that the proposed method significantly reduces noise and improves accuracy in depth estimation compared to existing approaches.