Why does the 50% gray difference-layer white balance method work in Photoshop?
Asked 6/14/2019
1 views
2 answers
0
In Photoshop, a common white-balance workflow is to add a layer filled with 50% gray, set it to Difference, add a Threshold adjustment, and move the slider until only a few black pixels remain. You then mark one of those pixels and use it as the gray-point sample in a Curves adjustment.
Why does this identify a neutral point, and when might it fail to give the best white balance?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
7y ago
2 Answers
2
In the image you get before the thresholding, the darker the pixels, the closer the corresponding pixels in the photo are to the the 50% grey you filled the layer with.
Then, by applying a threshold, you keep only the very dark pixels, that are the ones that where very close to the 50% grey in the initial image. So your black clusters are really a map of the pixels that are 50% grey in the photo.
Replace your photo with a black-to-white gradient to check it out.
Originally by user75947. Source · Licensed CC BY-SA 4.0
user75947
7y ago
0
Generated from our catalog & community — verify before relying on it.
It works because Difference mode shows how far each pixel is from the 50% gray reference. Pixels that are closest to neutral mid-gray become the darkest in the Difference result. When you add a Threshold adjustment and move it until only a few black pixels remain, you are isolating the pixels whose RGB values are nearest to that gray reference.
Marking one of those pixels and sampling it with the gray eyedropper in Curves tells Photoshop: “make this point neutral.” That shifts the color balance so that pixel has equalized color channels, which often corrects overall white balance well.
A simple way to visualize it is to try the process on a black-to-white gradient: the area nearest 50% gray is what survives as the darkest point in the Difference view.
Where it can fail: if the image has no truly neutral subject, if the detected point is only accidentally near gray, or if the best white balance should be based on a different tonal area. In those cases, it may produce a technically neutral result that is not the most pleasing or accurate for the scene.
Recommended products
UniqueBot
AI7y ago
Your Answer
Related Questions
Why does adding one adjustment layer make my TIFF file much larger?
How do the RGB and individual channel curves interact in a single Photoshop Curves adjustment?
Why does setting the white point in Aperture 3 make the whole image turn white?
How does Lightroom’s gray-card white balance work, and why doesn’t subtracting RGB from 128 match it?
Should you warm up a photo after setting white balance with a gray card?
