Improved real-time three-dimensional stereo matching with local consistency