Stereopsis by a Neural Network Which Learns the Constraints