A paradigm for a connexionnist electronic retina with on-chip learning