
Contrast is the contradiction in
luminance
Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls withi ...
or
colour that makes an object (or its representation in an image or display) distinguishable. In
visual perception of the real world, contrast is determined by the difference in the
colour and
brightness of the object and other objects within the same
field of view. The human visual system is more sensitive to contrast than absolute
luminance
Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls withi ...
; we can perceive the world similarly regardless of the huge changes in illumination over the day or from place to place. The maximum ''contrast'' of an image is the
contrast ratio
The contrast ratio (CR) is a property of a display system, defined as the ratio of the luminance of the brightest shade (white) to that of the darkest shade (black) that the system is capable of producing. A high contrast ratio is a desired aspec ...
or
dynamic range. Images with a contrast ratio close to their medium's maximum possible contrast ratio experience a ''conservation of contrast'', wherein any increase in contrast in some parts of the image must necessarily result in a decrease in contrast elsewhere. Brightening an image will increase contrast in dark areas but decrease contrast in bright areas, while darkening the image will have the opposite effect.
Bleach bypass destroys contrast in both the darkest and brightest parts of an image while enhancing luminance contrast in areas of intermediate brightness.
Biological contrast sensitivity
According to Campbell and Robson (1968), the human
contrast sensitivity function
Contrast is the contradiction in luminance or colour that makes an object (or its representation in an image or display) distinguishable. In visual perception of the real world, contrast is determined by the difference in the colour and brightn ...
shows a typical
band-pass filter shape peaking at around 4 cycles per degree, with sensitivity dropping off either side of the peak. That finding has led many to claim that the human
visual system is most sensitive in detecting contrast differences occurring at 4 cycles per degree. However, the claim of frequency sensitivity is problematic given, for example, that changes of distance do not seem to affect the relevant perceptual patterns (as noted, for example, in the figure caption to Solomon and Pelli (1994) While the latter authors are referring specifically to letters, they make no objective distinction between these and other shapes. The relative insensitivity of contrast effects to distance (and thus spatial frequency) may also be observed by casual inspection of a paradigmantic sweep grating, as may be observe
here
The high-frequency cut-off represents the
optical limitations of the visual system's ability to
resolve detail and is typically about 60 cycles per degree. The high-frequency cut-off is related to the packing density of the
retinal
photoreceptor cell
A photoreceptor cell is a specialized type of neuroepithelial cell found in the retina that is capable of visual phototransduction. The great biological importance of photoreceptors is that they convert light (visible electromagnetic radiatio ...
s: a finer matrix can resolve finer gratings.
The low frequency drop-off is due to
lateral inhibition within the
retinal ganglion cell
A retinal ganglion cell (RGC) is a type of neuron located near the inner surface (the ganglion cell layer) of the retina of the eye. It receives visual information from photoreceptors via two intermediate neuron types: bipolar cells and reti ...
s. A typical retinal ganglion cell presents a centre region with either excitation or inhibition and a surround region with the opposite sign. By using coarse gratings, the bright bands fall on the inhibitory as well as the excitatory region of the ganglion cell resulting in lateral inhibition and account for the low-frequency drop-off of the human contrast sensitivity function.
One experimental phenomenon is the inhibition of blue in the periphery if blue light is displayed against white, leading to a yellow surrounding. The yellow is derived from the inhibition of blue on the surroundings by the center. Since white minus blue is red and green, this mixes to become yellow.
For example, in the case of graphical computer displays, contrast depends on the properties of the picture source or file and the properties of the computer display, including its variable settings. For some screens the angle between the screen surface and the observer's line of sight is also important.
Formula
There are many possible definitions of contrast. Some include color; others do not. Travnikova laments, "Such a multiplicity of notions of contrast is extremely inconvenient. It complicates the solution of many applied problems and makes it difficult to compare the results published by different authors."
[
]
Various definitions of contrast are used in different situations. Here,
luminance
Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through, is emitted from, or is reflected from a particular area, and falls withi ...
contrast is used as an example, but the formulas can also be applied to other physical quantities. In many cases, the definitions of contrast represent a ratio of the type
:
The rationale behind this is that a small difference is negligible if the average luminance is high, while the same small difference matters if the average luminance is low (see
Weber–Fechner law
The Weber–Fechner laws are two related hypotheses in the field of psychophysics, known as Weber's law and Fechner's law. Both laws relate to human perception, more specifically the relation between the actual change in a physical stimulus an ...
). Below, some common definitions are given.
Weber contrast
Weber contrast is defined as
:
with
and
representing the luminance of the features and the background, respectively. The measure is also referred to as ''Weber fraction'', since it is the term that is constant in
Weber's Law. Weber contrast is commonly used in cases where small features are present on a large uniform background, i.e., where the average luminance is approximately equal to the background luminance.
Michelson contrast
Michelson contrast (also known as the ''visibility'') is commonly used for patterns where both bright and dark features are equivalent and take up similar fractions of the area (e.g.
sine-wave gratings). The Michelson contrast is defined as
:
with
and
representing the highest and lowest luminance. The denominator represents twice the average of the maximum and minimum luminances.
This form of contrast is an effective way to quantify contrast for periodic functions ''f''(''x'') and is also known as the modulation ''m
f'' of a periodic signal ''f''. Modulation quantifies the relative amount by which the amplitude (or difference) (''f''
max − ''f''
min)/2 of ''f'' stands out from the average value (or background) (''f''
max + ''f''
min)/2. In general, ''m
f'' refers to the contrast of the periodic signal ''f'' relative to its average value. If ''m
f'' = 0, then ''f'' has no contrast. If two periodic functions ''f'' and ''g'' have the same average value, then ''f'' has more contrast than ''g'' if ''m
f'' > ''m
g''.
RMS contrast
Root mean square
In mathematics and its applications, the root mean square of a set of numbers x_i (abbreviated as RMS, or rms and denoted in formulas as either x_\mathrm or \mathrm_x) is defined as the square root of the mean square (the arithmetic mean of th ...
(RMS) contrast does not depend on the angular frequency content or the spatial distribution of contrast in the image. RMS contrast is defined as the standard deviation of the
pixel
In digital imaging, a pixel (abbreviated px), pel, or picture element is the smallest addressable element in a raster image, or the smallest point in an all points addressable display device.
In most digital display devices, pixels are the s ...
intensities:
:
where intensities
are the
-th
-th element of the two-dimensional image of size
by
.
is the average intensity of all pixel values in the image. The image
is assumed to have its pixel intensities normalized in the range