A stereo matching algorithm with an adaptive window: theory and experiment | Synapse