libStereoMatch is a universal stereo matching library. This library is developed using C++and divides the stereo matching steps into four steps: cost calculation, cost aggregation, disparity calculation, and disparity optimization. Users can build their own stereo matching algorithms through combination and combination.