The Class of Stable Matchings for Computational Stereo