
What is White Balance (WB)?
White Balance (WB) is a critical image-processing technique used in digital photography and videography to adjust the colors of an image to make them appear natural under various lighting conditions. The goal of white balance is to render white objects in the scene as truly white, which in turn ensures that all other colors in the image look correct to the human eye.
Natural light can have different “color temperatures”—ranging from warm yellow hues in indoor tungsten lighting to cool blue tones in shade or overcast daylight. Without proper white balance adjustment, an image might appear too blue (cool) or too orange (warm), distorting the overall color fidelity of the scene.
Major Use Cases of White Balance (WB)
White balance has a wide range of applications, particularly in fields where accurate color representation is essential:
1. Digital Photography
- Professional photographers adjust white balance to capture colors faithfully in various lighting conditions such as daylight, tungsten, fluorescent, or mixed lighting.
- Automatic white balance (AWB) allows quick capture without manual adjustment.
2. Videography and Cinematography
- White balance helps in maintaining color consistency across scenes shot under different lighting setups.
3. Medical Imaging
- Accurate white balance is essential in pathology, endoscopy, and dermatology to differentiate between subtle variations in tissue color.
4. Security and Surveillance
- Ensures that footage from security cameras accurately captures real-world scenes, especially in low light or mixed lighting environments.
5. Augmented Reality (AR) & Virtual Reality (VR)
- White balance is key for blending digital objects with the real world in AR systems where environmental lighting varies dynamically.
How White Balance Works – Architecture Overview
White balance correction is built into the image signal processing (ISP) pipeline of digital cameras and imaging systems. The architecture usually follows these stages:
1. Image Capture
- The camera sensor captures raw image data, typically with a Bayer filter that separates red, green, and blue light.
2. Color Temperature Estimation
- The system estimates the lighting condition (color temperature) based on scene data or sensor input.
3. Gain Adjustment
- Based on the estimated temperature, gains are applied to the RGB channels to neutralize any color cast.
Example:- If the scene is too warm (orange), the system boosts the blue channel.
- If the scene is too cool (blue), the system boosts the red channel.
4. Color Correction Matrix (CCM)
- A color correction matrix is applied to fine-tune the color channels for consistent results across varying light sources.
5. Output Rendering
- The adjusted image is rendered and converted to a standard format like sRGB or Adobe RGB for display.
Basic Workflow of White Balance (WB)
Here’s a simplified end-to-end workflow of white balance in modern cameras or imaging applications:
- Capture Raw Image – RGB data is recorded from the image sensor.
- Analyze Scene Lighting – Estimate the color temperature using histogram or machine learning models.
- Calculate Correction Coefficients – Determine how much gain each channel needs.
- Apply Channel Gains – Adjust RGB channels accordingly.
- Apply Color Correction Matrix – Refine overall color mapping.
- Convert to Output Format – Prepare image for preview or storage.
Step-by-Step Guide to Getting Started with White Balance (WB)
Step 1: Understand the Lighting Environment
- Observe the ambient light source: daylight, fluorescent, incandescent, or mixed.
- Use a color temperature meter for accurate results, if needed.
Step 2: Choose a White Balance Mode
- Most cameras offer built-in presets:
- Auto White Balance (AWB)
- Daylight
- Cloudy
- Tungsten
- Fluorescent
- Custom/Manual
Step 3: Use a Grey Card or White Reference
- Place a neutral grey card or a white object in the frame.
- Set the camera’s white balance based on this reference.
- This ensures accurate calibration under current lighting.
Step 4: Manually Adjust Temperature and Tint (Optional)
- In post-processing tools like Adobe Lightroom or Photoshop:
- Adjust Temperature (Blue to Yellow scale)
- Adjust Tint (Green to Magenta scale)
Step 5: Evaluate and Refine
- Review the image for color accuracy.
- Fine-tune if colors still appear off.
- Save your custom preset for future use under similar lighting.