Contrast is the difference in luminance or color that makes an object (or its representation in an image or display) distinguishable from a background. Human vision is more sensitive to relative differences than to absolute luminance, so perceived appearance can remain fairly stable despite large changes in illumination. The maximum contrast of an image is termed the contrast ratio or dynamic range. In images where the contrast ratio approaches the maximum possible for the medium, there is a conservation of contrast. In such cases, increasing contrast in certain parts of the image will necessarily result in a decrease in contrast elsewhere. Brightening an image increases contrast in darker areas but decreases it in brighter areas; conversely, darkening the image will have the opposite effect. Bleach bypass reduces contrast in the darkest and brightest parts of an image while enhancing luminance contrast in areas of intermediate brightness.
Biological contrast sensitivity Campbell and Robson (1968) showed that the typical human contrast sensitivity function displays a band-pass filter shape that peaks around 4 cycles per degree (cpd or cyc/deg), with sensitivity dropping off either side of the peak. This can be observed by changing one's viewing distance from a "sweep grating" (shown below) showing many bars of a sinusoidal grating that go from high to low contrast along the bars, and go from narrow (high spatial frequency) to wide (low spatial frequency) bars across the width of the grating. The high-frequency cut-off represents the optical limitations of the visual system's ability to resolve detail and is typically about 60 cpd. The high-frequency cut-off is also related to the packing density of the retinal photoreceptor cells: a finer matrix can resolve finer gratings. The low frequency drop-off is due to lateral inhibition within the retinal ganglion cells. A typical retinal ganglion cell's receptive field comprises a central region in which light either excites or inhibits the cell, and a surround region in which light has the opposite effects. One experimental phenomenon is the inhibition of blue in the periphery if blue light is displayed against a white background, 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.
Quantifications
There are many possible definitions of contrast. Some include color; others do not. Russian scientist N. P. 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
Luminance differenceAverage luminance. 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). Below, some common definitions are given.
Weber contrast Weber contrast is defined as
I−IbIb, with I and Ib 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 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
Imax−IminImax+Imin, with Imax and Imin 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 mf of a periodic signal f. Modulation quantifies the relative amount by which the amplitude (or difference) (fmax−fmin)/2 of f stands out from the average value (or background) (fmax+fmin)/2. In general, mf refers to the contrast of the periodic signal f relative to its average value. If mf=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 mf>mg.
RMS contrast Root-mean-square (RMS) contrast does not depend on the spatial frequency content or the spatial distribution of contrast in the image. RMS contrast is defined as the standard deviation of the pixel intensities:
1MN∑i=0N−1∑j=0M−1(Iij−I¯)2 where intensities Iij are the i-th j-th element of the two-dimensional image of size M by N. I¯ is the average intensity of all pixel values in the image. The image I is assumed to have its pixel intensities normalized in the range [0,1]. This is equivalent to dividing the standard deviation of pixel intensities by the mean (with or without normalizing).
Haziness contrast Alternative contrast measurement metrics, such as the haziness metric, have been developed to quantify contrast (or lack of contrast) with more intuitive notions of contrast: ability to differentiate different regions of the image.
… excerpt ends here. Continue reading the full article.




