A fast segmentation-driven algorithm for stereo correspondence