Magenta highlights

Joined
Jan 29, 2005
Messages
2,761
Location
nowhere
The issue was brought once more in Dan Margulis "Color Theory" list. I think it might be of interest here too.

Magenta is lack of green. The reason behind magenta tint is multiplication of raw data on white balance coefficients in red and blue, as well as data truncation due to bit limit of the result.

Here is how it may happen. Let's assume the highlight recorded by the camera is (R,G,B) = (2100, 4095, 3011) in 12-bit (max = 4095). White balance coefficients recorded for particular light are (Cr, Cg, Cb) = (1.95, 1, 1.36). Performing multiplication you will have perfect white - (4095, 4095, 4095).

Now, let's see what is going on when green channel is overexposed. (R, G, B) now can reach for example (2835, 4095, 4064). Red channel and blue channel had some room to grow, while green was already saturated. Applying same coefficients we have (5528, 4095, 5527). As you see, red and blue channels are balanced, while green is lacking. Hence magenta tint.

To avoid this tint we can truncate values to 4095, or to use different "tricks" to restore green.

Another issue with false highlight coloration arises due to two-stage approach to applying white balance in some raw converters. If highlights are already truncated at first stage in one or two channels when camera white balance is applied, on the second stage, when we use resulting data for manual white balance tweaks, highlight false colouration may be grossly amplified.
 
Joined
Feb 25, 2005
Messages
304
Location
New Jersey
Good lord Iliah, what do you see when you look at a rainbow? (grin).

I'm so glad you're a part of this forum!

Question: Under what circumstances would the green channel be blown? I always assumed it was the most neutral of the three and that adjustments made to red & blue could balance image color.

_/oe
 
Joined
Jan 29, 2005
Messages
2,761
Location
nowhere
If image is overexposed, and composite histogram strongly hits the right wall - green is overexposed.
 
Joined
Feb 25, 2005
Messages
304
Location
New Jersey
So if I understand you correctly, a magenta tint isn't caused by anything more than the sensor maxing out the green channel, correct?

And if I understand correctly, the mistake made is in boosting the R/B values so that they balance and then truncating them down to 4095 because it actually makes the magenta tint problem worse. right?

What should we do when the green is blown?

_/oe
 
Joined
Jan 29, 2005
Messages
2,761
Location
nowhere
Joe_Lorenzini said:
So if I understand you correctly, a magenta tint isn't caused by anything more than the sensor maxing out the green channel, correct?
Indeed.
Joe_Lorenzini said:
And if I understand correctly, the mistake made is in boosting the R/B values so that they balance and then truncating them down to 4095 because it actually makes the magenta tint problem worse. right?
Not exactly. If we truncate red and blue channels back to 4095, we loose all the details which still may exist in those channels; but we maintain neutrality in the extreme highlights. If we let highlights in red and blue channels be higher then 4095, we keep details, but we gain magenta tint.
Joe_Lorenzini said:
What should we do when the green is blown?
You can use a layer of channel mixer, set to monochrome; and assign blurred highlight mask to that channel.
 
Joined
Mar 11, 2005
Messages
5,963
Location
SF Bay Area, California
Blurred Highlights Mask?????

Iliah.

One of your suggestions here is this: "You can use a layer of channel mixer, set to monochrome; and assign blurred highlight mask to that channel."

Could you please clarify how to do this? When I go to the channel mixer, I select green as the output channel, check the monochrome box and say okay.

Then here is where I really get lost. I couldn't figure out how to do the last part. How does one assign a blurred highlights mask to that channel?
 
Joined
Jan 29, 2005
Messages
2,761
Location
nowhere
Re: Blurred Highlights Mask?????

beaucamera said:
When I go to the channel mixer, I select green as the output channel, check the monochrome box and say okay.
Is the result sufficiently good?

Can you select highlights before adding channel mixer layer?
 
Joined
Mar 11, 2005
Messages
5,963
Location
SF Bay Area, California
Need more details, Iliah

Iliah, I am just trying to understand the procedure, so I don't have an image that has this problem now. I'm just going attempting to do what you have to suggested.

The only way I can figure out how to get to highlights before going to the channel mixer is to go to select, color range. One can then pick highlights, but I'm not sure what preview to use. Is this the best way to do this? Please advise.

Then one could select Color Mixer and select the green layer, but then how would you blur it (filters?) and how should one get back to the color image?
 
Joined
Jan 29, 2005
Messages
2,761
Location
nowhere
Yes, you can use that to select the highlights; or sample magenta with the eyedropper in Alt-SC menu, "sampled colors" mode; or just try "magentas" from drop-down menu.

Then add channel mixer layer. Selection will be automatically turned into a mask.

For adjustment layers mask is always active, so you can select Gaussian blur, and mask will be blurred. You can also use black and white brushes, brushes will paint on mask.

I use preview in Quick mask mode. To have good contrast, you can double-click on the Quick mask button in tool palette and change it's colour to blue. Then you need to leave the Quick Mask mode, hitting the button to the left of it.
 
Links on this page may be to our affiliates. Sales through affiliate links may benefit this site.
Nikon Cafe is a fan site and not associated with Nikon Corporation.
Forum post reactions by Twemoji: https://github.com/twitter/twemoji
Copyright © 2005-2019 Amin Forums, LLC
Top Bottom