Switch to full style
Ask all general Gimp related questions here
Post a reply

'Equalize' and 'White Balance' makes image greyscale

Sat Mar 20, 2021 9:26 pm

GIMP Version: 2.8.14
Operating System: Windows
OS Version: 10.0.18363 Build 18363
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
Equalize, White Balance



Using 'Equalize' or any kind of histogram balancing makes the image black and white. The color mode is RGB, all 4 channels are present (RGBA), and I even saved the image and re-opened GIMP just in case it was a one-off thing. I really don't think this is the intended functionality of these functions, as every example of them I can find still includes the colors. Using the auto-balancing function in Levels produces the same result. How can I equalize value without destroying the image?

This is the image before using either Equalize or White Balance:
Y58fuwL - Imgur.png
before
Y58fuwL - Imgur.png (709.25 KiB) Viewed 2795 times

This is after:
UFTdXFT - Imgur.png
after
UFTdXFT - Imgur.png (1.06 MiB) Viewed 2795 times


Here is the .xcf file:
cliff-albedo.xcf
the xcf
(5.21 MiB) Downloaded 95 times


I wish the forums wouldn't block links to imgur and google drive for new users if it's just going to allow me to upload the files directly anyway.

Re: 'Equalize' and 'White Balance' makes image greyscale

Sun Mar 21, 2021 1:54 am

With AutoEqualize on the .png input I get this outcome:
Y58fuwL - Imgur_AutoEqualize.png
Y58fuwL - Imgur_AutoEqualize.png (1.3 MiB) Viewed 2772 times

or this outcome starting from the .xcf input:
desert-cliff1-albedo_AutoEqualizingXCFinput.jpeg
desert-cliff1-albedo_AutoEqualizingXCFinput.jpeg (2.56 MiB) Viewed 2771 times

(used jpeg instead of png for attachment size)
Both correspond IMHO to "equalizing" R,G,B values (you may look at the 3 histograms per single colour of the RGB image, before and after).

Re: 'Equalize' and 'White Balance' makes image greyscale

Sun Mar 21, 2021 2:16 am

from Gimp Documentation:

The Equalize command automatically adjusts the brightness of colors across the active layer so that the histogram for the Value channel is as nearly flat as possible, that is, so that each possible brightness value appears at about the same number of pixels as every other value. You can see this in the histograms in the example below, in that pixel colors which occur frequently in the image are stretched further apart than pixel colors which occur only rarely. The results of this command can vary quite a bit. Sometimes “Equalize” works very well to enhance the contrast in an image, bringing out details which were hard to see before. Other times, the results look very bad. It is a very powerful operation and it is worth trying to see if it will improve your image.

Re: 'Equalize' and 'White Balance' makes image greyscale

Sun Mar 21, 2021 6:57 pm

Auto white balance adjusts colors (along the red/blue axis) to make the average of the whole image grey. If you provide a single color it becomes gray(*)

Better tell us what you want to achieve so we can tell you the best ways to do it

(*) Which is why sunsets with digital cameras were initially disappointing until camera manufacturers improved the algorithm to recognize that special case.
Post a reply