Interactive White Balance Adjustment for Photographic Images

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Due to different lighting conditions, white or gray areas in a photograph may not be displayed as neutral white or gray. White balance correction rescales the pixel values in the image in order to make gray areas display correctly.


This Demonstration lets you adjust the white balance of the entire photograph by analyzing a presumed gray pixel in the image and adjusting the remaining pixels proportionally. A pixel with red, green, and blue intensities is assumed to be neutral gray when .

Putting the locator in the original image on top of a pixel converts it in the right image to neutral gray and recalculates the remaining pixels, making the complete image "white balanced."


Contributed by: Erik Mahieu (July 2015)
With coding help from: Giulio Alessandrini
Open content licensed under CC BY-NC-SA




[1] Wikipedia. "Color Balance." (Jun 30, 2015)

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.