An optical illusion (also called a visual illusion) is characterized by visually perceived images that are deceptive or misleading. The information gathered by the eye is processed by the brain to give a percept that does not tally with a physical measurement of the stimulus source. There are three main types of illusion - literal optical illusions that create images that are different from the objects that make them, physiological illusions that are the effects on the eyes and brain of excessive stimulation of a specific type - brightness, tilt, color, movement, and cognitive illusions where the eye and brain make unconscious inferences.
Physiological illusions, such as the afterimages following bright lights or adapting stimuli of excessively longer alternating patterns (contingent perceptual aftereffect), are presumed to be the effects on the eyes or brain of excessive stimulation of a specific type - brightness, tilt, color, movement, etc. The theory is that stimuli have individual dedicated neural paths in the early stages of visual processing, and that repetitive stimulation of only one or a few channels causes a physiological imbalance that alters perception.
The Herman Grid Illusion is best explained using a biological approach. Lateral inhibition, where in the receptive field of the retina light and dark receptors compete with one another to become active, has been used to explain why we see bands of increased brightness at the edge of a color difference when viewing Mach bands. Once a receptor is active it inhibits adjacent receptors. This inhibition creates contrast, highlighting edges. In the Hermann grid illusion the grey spots appear at the intersection because of the inhibitory response which occurs as a result of the increased dark surround.
Cognitive illusions are assumed to arise by interaction with assumptions about the world, leading to "unconscious inferences", an idea first suggested in the 19th century by Hermann Helmholtz. Cognitive illusions are commonly divided into ambiguous illusions, distorting illusions, paradox illusions, or fiction illusions.