Learning Lateral Interactions for Feature Binding and Sensory Segmentation from Prototypic Basis Interactions