ArticleslgStudy

mathematics

Contrast (vision)

Contrast (vision) is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Contrast (vision) rather than just read about it. In short: 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.

Contrast (vision) — main illustration
Contrast (vision) — illustration

Key takeaways

  • Contrast (vision) belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Contrast (vision) to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Contrast (vision) from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Contrast (vision): Six renditions of a rocky shore photo with incremental contrast levels, clockwise from bottom left
Six renditions of a rocky shore photo with incremental contrast levels, clockwise from bottom left
Contrast (vision): The contrast in the left half of the image is lower than that in the right half.
The contrast in the left half of the image is lower than that in the right half.
Contrast (vision) illustration
Contrast (vision) illustration
Contrast (vision) illustration

Worked examples

Example 1 — a first encounter with Contrast (vision)

Start with the simplest possible case. Write down what Contrast (vision) claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Contrast (vision) before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Contrast (vision) ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Contrast (vision)

In research
Contrast (vision) appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Contrast (vision) in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Contrast (vision) is common in secondary-school and first-year university syllabi. It links to neighbouring topics Dimensionless numbers, Perception, Photometry, so understanding it makes those chapters shorter.
In everyday life
Look for Contrast (vision) outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Contrast (vision)” →

How to study Contrast (vision) in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Contrast (vision) means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Contrast (vision) out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Contrast (vision) in simple terms?

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 c…

Why does Contrast (vision) matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Contrast (vision)?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Contrast (vision).

Tags

  • Dimensionless numbers
  • Perception
  • Photometry
  • Vision
  • Visual perception

Keep exploring