White Balance
Photography Fundamentals
Course 1 · Chapter 7 · White Balance: Getting Colour Right
The Problem
Photography Fundamentals 4 showed that light sources differ widely in colour temperature, from about 1,850 K for a candle to 6,500 K for an overcast sky. Our eyes and brain largely adjust to this; a camera does not. White balance is how the picture is corrected so that neutral colours, such as a white wall, look neutral.
Wikipedia's Color balance article describes colour balance as the global adjustment of colour intensities (typically red, green and blue) so that neutral colours render correctly, with white balance the most common kind. It makes a white object look white rather than tinted. The article gives three reasons it is needed: camera sensors do not respond like the human eye, display properties must be accounted for, and shooting conditions often differ from viewing conditions.
Camera Settings
The article says cameras may offer manual lighting selection, automatic white balance or custom white balance. Its only worked example of presets is one camera model, the Nikon Z 50:
| Light | Approximate setting (Nikon Z 50, per the article) |
|---|---|
| Incandescent | about 3,000 K |
| Direct sunlight | about 5,200 K |
| Flash | about 5,400 K |
| Cloudy | about 6,000 K |
| Shade | about 8,000 K |
Users can also set any value from 2,500 to 10,000 K on that camera. Other makers' presets and values differ, and I did not check them (check). Notice that these are close to Chapter 4's values but not the same: 3,000 K for incandescent against 2,400 K for a standard lamp, and 6,000 K for cloudy against 6,500 K for overcast. A preset is a nominal setting, not a measurement.
Automatic White Balance and the Gray World Idea
The article says the algorithms behind automatic white balance perform generalised chromatic adaptation but does not describe them in detail; it mentions estimation approaches such as Retinex, neural networks and Bayesian methods. It does not discuss the "gray world" assumption (and the Wikipedia page I tried for it returned an error), so the following is my own illustration of a well-known simple idea, not the method any camera uses (check).
The gray world idea assumes that the average colour of a whole scene is neutral grey. If the red average is too high, scale red down, and scale blue up if it is too low. The script below does that and I ran it, with a made-up scene lit by warm light.
Raw Files
The article says getting the balance right at capture is advantageous. If balancing has to happen later, adjusting the raw image data tends to distort chromatic colours less than adjusting in monitor RGB. What a raw file is gets its own treatment in Photography Fundamentals 8.
Not Yet Verified, and Sources
- Sources. Wikipedia article Color balance, read through a page summary. The Gray world page I tried returned an error and was not read.
- Not on the page read. The gray world assumption and my script (my own illustration), other makers' presets, and mired shifts (check).
- Not tested. I did not test the script on a real image.
Exercises
Run the script on a scene with a large strongly red object: [(200, 40, 40), (100, 100, 100), (120, 120, 120), (80, 80, 80)]. What happens to the three grey pixels, and what does that tell you about the gray world assumption?
Using the table, which preset would you try for (a) a living room under an ordinary lamp, (b) a sunny afternoon, (c) a photo of a shaded garden path on a bright day? If the result looks too blue or too orange, which way would you move the kelvin setting, and why?
Run the script on a cool-cast scene: [(90, 120, 200), (60, 80, 140)]. Give the gains, say which colour is boosted and which reduced, and explain what light source might have caused such a cast.
Quick Reference
- White balance: adjusting colour so neutrals look neutral
- Camera options: manual selection, automatic, custom (grey card)
- Example presets (one model): 3,000 / 5,200 / 5,400 / 6,000 / 8,000 K
- Gray world: my illustration only; fails with large coloured areas
- Check: other makers' presets, real algorithms