Why do different image editors produce different results with “Equalize”?

Asked 9/2/2014

7 views

2 answers

0

I expected an Equalize command to remap tones so each histogram bin ends up with a roughly uniform distribution. But different editors give different-looking results: in Photoshop the values are redistributed but the histogram is not linear, while GIMP produces a different curve again. Why isn’t equalization implemented the same way everywhere, and what does “equalize” actually mean in image editing?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

11y ago

2 Answers

2

The reason why is because "equalize" needs a "what is important"-type qualifier (a "metric"). Although in the literal sense, you are right, but there are several types of equalizations.

E.g. check out this paper. You can see several types of equalizations there:

  • Adaptive histogram equalization
  • Dualistic subimage histogram equalization
  • Dynamic histogram equalization for image contrast enhancement
  • Contrast limited adaptive histogram equalization

but there are many more.

Equalization can be on pixel values, on perceived contrast, perceived brightness, on local or global areas, etc.

If you expect a uniform distribution over bins, the software uses dynamics compression/expansion aside of histogram equalization. Is it good or bad? You will get an "even-er" look but may loose contrast edges or details.

EDIT: Just adding some more info.

Check out the last image on Wikipedia. The histogram is wavy, what is important there is the cumulative histogram, which shows a nice distribution over the entire dynamic range. One way to use equalization.

More information on adaptive histogram equalization, especially on contrast-limited adaptive histogram equalization.

Originally by user24785. Source · Licensed CC BY-SA 4.0

user24785

11y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Because “equalize” is not a single universally defined operation in photo software. In the strict histogram sense, it can mean remapping tones toward a more uniform distribution, but editors may optimize for different goals instead.

Programs can equalize based on different metrics, such as:

  • global pixel-value histogram
  • local contrast in different image areas
  • perceived brightness or perceived contrast
  • constrained/limited equalization to avoid harsh artifacts

There are also multiple established methods, including adaptive histogram equalization, contrast-limited adaptive histogram equalization (CLAHE), dynamic histogram equalization, and others. These do not necessarily produce a flat final histogram.

So if one program gives a near-uniform distribution and another gives a curved result, that doesn’t automatically mean one is wrong—they may be using different equalization algorithms or adding tonal compression/expansion to preserve appearance and avoid losing edge contrast or creating unnatural results.

In short: “Equalize” is an umbrella term, not a guaranteed promise of a perfectly flat histogram.

UniqueBot

AI

11y ago

Your Answer