ArticleslgStudy

science

Histogram equalization

Histogram equalization is a science 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 Histogram equalization rather than just read about it. In short: In image processing, Histogram equalization is a method of contrast adjustment using the image's histogram. Histogram equalization is a specific case of the more general class of histogram remapping methods.

Histogram equalization — main illustration
Histogram equalization — illustration

Key takeaways

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

Reference excerpt

In image processing, Histogram equalization is a method of contrast adjustment using the image's histogram. Histogram equalization is a specific case of the more general class of histogram remapping methods. These methods seek to adjust the image to make it easier to analyze or improve visual quality.

Overview This method usually increases the global contrast of many images, especially when the image is represented by a narrow range of intensity values. Through this adjustment, the intensities can be better distributed on the histogram, utilizing the full range of intensities evenly. This allows for areas of lower local contrast to gain a higher contrast. Histogram equalization accomplishes this by effectively spreading out the highly populated intensity values, which tend to degrade image contrast. The method is useful in images with backgrounds and foregrounds that are both bright or both dark. In particular, the method can lead to better views of bone structure in x-ray images and to better detail in photographs that are either over- or under-exposed. A key advantage of the method is that it is a fairly straightforward technique, adaptive to the input image and an invertible operation. So, in theory, if the histogram equalization function is known, then the original histogram can be recovered. The calculation is not computationally intensive. A disadvantage of the method is that it is indiscriminate. It may increase the contrast of background noise, while decreasing the usable signal. In scientific imaging, where spatial correlation is more important than intensity of signal (such as separating DNA fragments of quantized length), the small signal-to-noise ratio usually hampers visual detections. Histogram equalization often produces unrealistic effects in photographs; however, it is very useful for scientific images like thermal, satellite or x-ray images, often the same class of images to which one would apply false-color. Also histogram equalization can produce undesirable effects (like visible image gradient) when applied to images with low color depth. For example, if applied to an 8-bit image displayed with 8-bit gray-scale palette it will further reduce color depth (number of unique shades of gray) of the image. Histogram equalization will work the best when applied to images with much higher color depth than palette size, like continuous data or 16-bit gray-scale images. There are two ways to think about and implement histogram equalization, either as an image change or as a palette change. The operation can be expressed as P ( M ( I ) ) {\displaystyle P(M(I))} where I {\displaystyle I} is the original image, M {\displaystyle M} is the histogram equalization mapping operation, and P {\displaystyle P} is a palette. If we define a new palette as P ′ = P ( M ) {\displaystyle P'=P(M)} and leave image I {\displaystyle I} unchanged, then histogram equalization is implemented as palette change or mapping change. On the other hand, if palette P {\displaystyle P} remains unchanged and image is modified to I ′ = M ( I ) {\displaystyle I'=M(I)} then the implementation is accomplished by image change. In most cases, palette change is preferred as it preserves the original data. Modifications of this method use multiple histograms, called subhistograms, to emphasize local contrast rather than overall global contrast. Examples of such methods include adaptive histogram equalization and variations including contrast-limited adaptive histogram equalization, multipeak histogram equalization, and multipurpose beta-optimized bihistogram equalization (MBOBHE). The goal of these methods, especially MBOBHE, is to modify the algorithm to improve the contrast without producing brightness mean-shift and detail loss artifacts. A signal transform equivalent to histogram equalization also seems to happen in biological neural networks so as to maximize the output firing rate of the neuron as a function of the input statistics. This has been proved in particular in the fly retina.

Back projection The back projection of a histogrammed image is the re-application of the modified histogram to the original image, functioning as a look-up table for pixel brightness values. For each group of pixels taken from the same position from all input single-channel images, the function puts the histogram bin value to the destination image, where the coordinates of the bin are determined by the values of pixels in this input group. In terms of statistics, the value of each output image pixel characterizes the probability that the corresponding input pixel group belongs to the object whose histogram is used.

Implementation Consider a discrete grayscale image X {\displaystyle X} and let n i {\displaystyle n_{i}} be the number of occurrences of gray level i {\displaystyle i} . The probability of a pixel value chosen uniformly randomly from image X {\displaystyle X} being i {\displaystyle i} , is

p X ( i ) = n i n , 0 ≤ i < L {\displaystyle \ p_{X}(i)={\frac {n_{i}}{n}},\quad 0\leq i<L}

… excerpt ends here. Continue reading the full article.

Illustrations

Histogram equalization: Histograms of an image before and after equalization.
Histograms of an image before and after equalization.
Histogram equalization: The 8 × 8 sub-image shown in 8-bit grayscale
The 8 × 8 sub-image shown in 8-bit grayscale
Histogram equalization illustration
Histogram equalization illustration
Histogram equalization illustration

Worked examples

Example 1 — a first encounter with Histogram equalization

Start with the simplest possible case. Write down what Histogram equalization claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, 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 Histogram equalization 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 Histogram equalization 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 Histogram equalization

In research
Histogram equalization appears in science 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 Histogram equalization 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
Histogram equalization is common in secondary-school and first-year university syllabi. It links to neighbouring topics Image processing, so understanding it makes those chapters shorter.
In everyday life
Look for Histogram equalization 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.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Histogram equalization in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Histogram equalization 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 Histogram equalization out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Histogram equalization in simple terms?

In image processing, Histogram equalization is a method of contrast adjustment using the image's histogram. Histogram equalization is a specific case of the more general class of histogram remapping methods.

Why does Histogram equalization matter?

Because it connects several science 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 Histogram equalization?

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 Histogram equalization.

Tags

  • Image processing

Keep exploring