A Multi-Layer Approach to Segmentation and Interpolation with Application to Stereo Vision