Mach bands

It exaggerates the contrast between edges of the slightly differing shades of gray, as soon as they contact one another, by triggering edge-detection in the human visual system.

[1] The Mach bands effect is due to the spatial high-boost filtering performed by the human visual system on the luminance channel of the image captured by the retina.

[3] The visual pattern is often found on curved surfaces subject to a particular, naturally-occurring illumination, so the occurrence of filtering can be explained as the result of learnt image statistics.

This visual phenomenon is important to keep in mind when evaluating dental radiographs for evidence of decay, in which grayscale images of teeth and bone are analyzed for abnormal variances of density.

[8] Mach bands can also appear when there is a discontinuity in the derivative of a gradient, a visual effect common when intensities are linearly interpolated such as in Gouraud shading.

Exaggerated contrast between edges of the slightly differing shades of gray appears as soon as they touch
Along the boundary between adjacent shades of grey in the Mach bands illusion, lateral inhibition makes the darker area falsely appear even darker and the lighter area falsely appear even lighter.
An illusory cross (×) appears in the large image due to gradient discontinuity [ 5 ]
Example of Mach bands at the ends of gradients where the derivative of the luminance is discontinuous
  1. Actual luminance profile
  2. Perceived luminance profile
  3. Smooth luminance profile for comparison