Model of visual contrast gain control and pattern masking | Synapse