Functional Ideas about Adaptation Applied to Spatial and Motion Vision