# White Balance

Gilles
Caulier

    caulier dot gilles at free.fr

Gerhard
Kulzer

    gerhard at kulzer dot net

The digiKam image plugin White Balance is a semi-automatic tool to adjust the white-balance of a photograph.

KDE
Digikam

# Introduction

White Balance setting is a common hurdle for digital still cameras. In the 'good old time' of film rolls, the white balance was done by the photolab. Nowadays the poor little camera has to guess what is white and what is black. Most of the time, what the camera chooses as the white point, is not of the correct shade or hue. Using this plugin it is easy to correct this problem. It provides a variery of parameters that can be trimmed to obtain a better result.

The whitebalance correction is somewhat limited by the fact that we operate in 8bit per channel color space. So if you depart too much from the original, over exposure zones may appear. If you can adjust the whitebalance in raw conversion mode (which is done in 16 bit space), the margin for correction will be greater.

This plugin is based on a white color balance algorithm copyrighted by Pawel T. Jochym. Launch it from the Fix Colors White Balance Image Editor menu.

## Using the plugin

### The White Balance Tool Dialog

The preview window can be resized. To the left, both an original and a target preview tab is shown. The target preview is updated dynamically according to the plugin's settings. If you want to see the orginal whitebalance, just click on that tab.

The target photo preview has a red marker available. The luminosity value of the pixel under the marker is shown as a vertical line in the histogram .

To the top right, the plugin displays a histogram that is dynamically updated when changing the parameters. This histogram is very instructive as it shows that even in well exposed photos, most of the pixels have very small luminosity. With a button you can select to show either one of the 3 colors (or the sum of it which is called luminosity).

With Exposure you can digitally change the original photo exposure. Increasing the exposure is has the risk of making the pixel noise more visible and to blow out the highlights. Check the Over exposure indicator at the lower right to see if you run into saturation problems. The Black Point adjustment can be used to cut the histogram from the left. If your photograph looks foggy (histogram has empty space on the left, black side), you probably need to use this option. The Exposure and Black Point adjustments can be automatically estimated by pressing the Auto Exposure Adjustments button. This sets the black point quite accurately.

The contrast of your output depends on Shadows, Saturation, and Gamma parameters. The Shadows adjustment lets you enhance or diminish the shadow details in your photo.

Increasing the contrast of your photograph can have the side effect of reducing the apparent Saturation of the photo. Use a value larger than 1 to increase the saturation and a value of less than 1 to desaturate the photo. A value of 0 will give you a black and white photo. Don't be shy to bump up the saturation of your photos a little. The general rule is that for higher Contrast (lower Gamma) you need to apply more Saturation.

The next set of options is the mainstay of White Balance settings, which controls the ratio between the three color channels. Here you can set the color Temperature, making your picture warmer or colder. Higher temperature will result in a warmer tint. Setting the ratio between the three color channels requires two adjustments. Since the temperature adjustment mostly controls the ratio between the red and the blue channels, it is natural that the second adjustment will control the intensity of the Green channel.

Instead of fiddling around with the above controls, you can simply use the Temperature Tone Color Picker button. Press on this button and click anywhere on the original preview image to get the output color of that area to calculate the white color balance temperature settings. This way, Temperature and Green values are automatically computed.

In addition you can set the White Balance using the preset list. These are the white color balance temperature presets available:

Color Temperature | Description | Kelvin
--- | --- | ---
40W | 40 Watt incandescent lamp. | 2680
200W | 200 Watt incandescent lamp, studio lights, photo floods. | 3000
Sunrise | Sunrise or sunset light. | 3200
Tungsten | Tungsten lamp or light at 1 hour from dusk or dawn. | 3400
Neutral | Neutral color temperature. | 4750
Xenon | Xenon lamp or light arc. | 5000
Sun | Sunny daylight around noon. | 5500
Flash | Electronic photo flash. | 5600
Sky | Overcast sky light. | 6500

Color Temperature is a simplified way to characterize the spectral properties of a light source. While in reality the color of light is determined by how much each point on the spectral curve contributes to its output, the result can still be summarized on a linear scale. This value is useful e.g. for determining the correct the white balance in digital photography, and for specifying the right light source types in architectural lighting design. Note, however, that light sources of the same color (metamers) can vary widely in the quality of light emitted.

Low Color Temperature implies more yellow-red light while high color temperature implies more blue light. Daylight has a rather low color temperature near dawn, and a higher one during the day. Therefore it can be useful to install an electrical lighting system that can supply cooler light to supplement daylight when needed, and fill in with warmer light at night. This also correlates with human feelings towards the warm colors of light coming from candles or an open fireplace at night. Standard unit for color temperature is Kelvin (K).

Over Exposure Indicator option adds up the colors if more than one channel in a pixel is over-exposed, and you will see the combined color resulting of White Color Balance controls settings. This rule is applied to target preview area as an indication only and has no effect on the final rendering.

Save As and Load buttons are used to do just that. Any White Color Balance settings that you have set can be saved to the filesystem in a text file and loaded later.

Reset All button resets all filter settings to default values corresponding to Neutral White Balance color. (Attention, even the neutral setting might be different from your original photograph. If you save it, the white balance will be changed.)

## The plugin in action

Below, you can see a photograph White Color Balance correction applied to a color photograph taken with an Olympus C3000Z at midday. Look like color temperature is tinted to light blue. Camera have been set with default parameter in auto exposure mode. White Color Balance setting used to correct this photograph is Sun light color temperature. Exposure settings is unchanged. The original image is (1), the corrected image (2).

### The White Balance Tool in Action