1
\$\begingroup\$

I had always thought that "equalize" meant that each channel ended up with a uniform distribution. However, that's not what I'm seeing in Photoshop- values are redistributed, by the histogram isn't linear.

Running Gimp's Equalize command gives histograms that look like parabolas.

Only Picture Window Pro gives the expected uniform distribution.

Why is such a simple command implemented differently?

\$\endgroup\$
1
  • \$\begingroup\$ Very good question! (Guys: not primarily opinion-based!) \$\endgroup\$
    – TFuto
    Commented Sep 2, 2014 at 16:41

1 Answer 1

2
\$\begingroup\$

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.

\$\endgroup\$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.