Real-time stereo semi-global matching for video processing using previous incremental information