Contrast is the contradiction in
luminance or
colour
Color (American English) or colour (British English) is the visual perceptual property deriving from the spectrum of light interacting with the photoreceptor cells of the eyes. Color categories and physical specifications of color are assoc ...
that makes an object (or its representation in an image or display) distinguishable. In
visual perception
Visual perception is the ability to interpret the surrounding Biophysical environment, environment through photopic vision (daytime vision), color vision, scotopic vision (night vision), and mesopic vision (twilight vision), using light in the ...
of the real world, contrast is determined by the difference in the
colour
Color (American English) or colour (British English) is the visual perceptual property deriving from the spectrum of light interacting with the photoreceptor cells of the eyes. Color categories and physical specifications of color are assoc ...
and
brightness
Brightness is an attribute of visual perception in which a source appears to be radiating or reflecting light. In other words, brightness is the perception elicited by the luminance of a visual target. The perception is not linear to luminan ...
of the object and other objects within the same
field of view
The field of view (FoV) is the extent of the observable world that is seen at any given moment. In the case of optical instruments or sensors it is a solid angle through which a detector is sensitive to electromagnetic radiation.
Human ...
. The human visual system is more sensitive to contrast than absolute
luminance; 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 or
dynamic range
Dynamic range (abbreviated DR, DNR, or DYR) is the ratio between the largest and smallest values that a certain quantity can assume. It is often used in the context of Signal (electrical engineering), signals, like sound and light. It is measured ...
. 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
Bleach bypass, also known as skip bleach or silver retention, is a chemical effect which entails either the partial or complete skipping of the bleaching function during the processing of a color film. By doing this, the silver is retained in t ...
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 shows a typical
band-pass filter
A band-pass filter or bandpass filter (BPF) is a device that passes frequencies within a certain range and rejects (attenuates) frequencies outside that range.
Description
In electronics and signal processing, a filter is usually a two-port ...
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
The visual system comprises the sensory organ (the eye) and parts of the central nervous system (the retina containing photoreceptor cells, the optic nerve, the optic tract and the visual cortex) which gives organisms the sense of sight (th ...
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
Optics is the branch of physics that studies the behaviour and properties of light, including its interactions with matter and the construction of instruments that use or detect it. Optics usually describes the behaviour of visible, ultravio ...
limitations of the visual system's ability to
resolve
Resolve may refer to:
* ''Resolve'' (Lagwagon album)
* ''Resolve'' (Last Tuesday album)
* "Resolve" (song), by the Foo Fighters
*'' The Resolve'', a 1915 American silent short drama film
* "Resolve" (''One Tree Hill'' episode)
*''Resolve'', a Brit ...
detail and is typically about 60 cycles per degree. The high-frequency cut-off is related to the packing density of the
retina
The retina (from la, rete "net") is the innermost, light-sensitive layer of tissue of the eye of most vertebrates and some molluscs. The optics of the eye create a focused two-dimensional image of the visual world on the retina, which then ...
l
photoreceptor cells: a finer matrix can resolve finer gratings.
The low frequency drop-off is due to
lateral inhibition
In neurobiology, lateral inhibition is the capacity of an excited neuron to reduce the activity of its neighbors. Lateral inhibition disables the spreading of action potentials from excited neurons to neighboring neurons in the lateral direction ...
within the
retinal ganglion cells. 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 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 (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 ...
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