Skip to content
tezvyn:
Menu

Compare Gray World and White Patch white balance.

Source: interviewMediumHow cards are made

Summary

classic color constancy methods.

Key points

Gray World assumes average scene color is gray, White Patch assumes the brightest pixel is white, both fail on dominant colors or clipping; learning predicts illuminant from data.

What's really being asked

The interviewer wants to see that you know the foundational color-constancy heuristics, exactly what each assumes, when each breaks, and why data-driven methods help.

The full answer

Gray World assumes that, averaged over the whole image, the scene is achromatic; you compute the mean of each color channel and apply gains so the means become equal, neutralizing the illuminant's color cast. Its failure mode is a scene dominated by one hue, like a close-up of grass or a red wall, where the average is genuinely not gray, so it over-corrects. White Patch, or max-RGB, assumes the brightest patch corresponds to a white reflector under the illuminant; you take the per-channel maximum and scale so those maxima align. It fails when highlights are clipped, when the brightest object is colored, or with sensor saturation. A learning-based method instead trains on images with known ground-truth illuminants and predicts the illuminant color from richer features, capturing semantic and statistical priors that fixed heuristics cannot, and it degrades more gracefully on hard scenes.

The mistakes people make

Stating the algorithms without their assumptions, or claiming they always work. Confusing white balance with overall exposure correction. Forgetting that both classic methods are single global estimates.

What usually comes next

Shades of Gray and Gray Edge generalizations, how illuminant ground truth is captured with a calibration target, multi-illuminant scenes, and metrics like angular error.

A concrete example

Under warm tungsten light, Gray World raises the blue gain because the average is too red, while White Patch picks the brightest pixel as the reference white; on a photo that is mostly an orange sunset, Gray World wrongly drains the warmth, whereas a learned model recognizes the sunset and keeps it.

Interview question

In what scene would the Gray World white balance assumption most likely fail?

  • a.A scene lit by neutral daylight
  • b.A close-up dominated by a single strong color like grassCorrect
  • c.A grayscale document scan
  • d.A balanced indoor scene with mixed colors
Why?

Gray World assumes the scene average is achromatic; a single dominant hue makes the true average colored, so it over-corrects. Mixed or neutral scenes satisfy the assumption far better.

Just read this? Test yourself on what you have been reading.

Read the original → eureka.patsnap.com

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.

See open roles