Redcrown
Jr. Member

Offline
Posts: 76
|
 |
« on: April 19, 2012, 12:14:43 AM » |
Reply
|
I'm doing some testing (again) on various saturation methods in Photoshop. I noticed that when I use the LAB method to add a "flat" curve to the A and B channels, in some cases one of the resulting RGB values will be zero.
This confuses me. Normally, a zero value means clipping and clipping is a bad thing. But the results look OK.
For example, here are the starting and ending RGB values for a few test patches. These values are from the Info Pallet while still in LAB mode.
76/191/191 becomes 0/204/228 84/153/153 becomes 0/168/178 27/38/38 becomes 0/42/44
The test patches were created with the same Hue but different values of Saturation and Brightness. That's why the Green and Blue starting values are equal. The Red values go to zero. If I change the Hue to something else, the same thing will happen but in another channel. Either Green or Blue will go to zero. Even on a patch with all different starting RGB values, some will go to zero. I can't understand the pattern.
This happens at even very slight increases in saturation, but the stronger the sat increase, more RGB values go to zero.
So, is this a bad thing, having a result with a lot of zeros scattered about in the RGB values?
|
|
|
|
|
Logged
|
|
|
|
|
BartvanderWolf
|
 |
« Reply #1 on: April 19, 2012, 04:19:49 AM » |
Reply
|
I'm doing some testing (again) on various saturation methods in Photoshop. I noticed that when I use the LAB method to add a "flat" curve to the A and B channels, in some cases one of the resulting RGB values will be zero. [...] So, is this a bad thing, having a result with a lot of zeros scattered about in the RGB values?
Hi, Just a small word of warning, the mere conversion to and from Lab will introduce a color shift. This will be exaggerated by boosting the saturation in Lab. For example, assuming ProPhoto RGB as your workingspace, mathematically RGB [76, 192, 192] translates to Lab [73, -94, -14] in rounded integer values. Translating that back to RGB gives [75.76, 190.04, 189.65] (before rounding, to better show the direction of the shift). After rounding to 8-bit precision there is only a small difference, but you can see a pattern (a darker pixel, with a reddish color shift). How important that shift is, given that you are changing the saturation alltogether, is up to the user to decide. However, it is something to be aware of, transcoding to and from other colorspaces is not without side-effects. In the same vein, zero's are improbable in real life scenes mapped to colormodels, but you are creating an altered impression of reality anyway. They do signal a probably lost accuracy, because 0 might as well be too high mathematically (but we cannot have negative coordinates), so you have created a non-existing 'color' outside of the RGB gamut hull, which is clipped to fit the colormodel. Conclusion, you've probably gone a bit overboard with the saturation boost, but you may like the altered reality better than the original. Creating out-of-gamut colors is something that a 'vibrance' control typically tries to avoid, in contrast to a regular saturation control. Cheers, Bart
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #2 on: April 19, 2012, 07:57:30 AM » |
Reply
|
I don't understand what you mean by "adding s flat curve to the A and B channels". The normal way of increasing saturation in a neutral manner using LAB is to make linear inward shifts of the A and B curves on both axis equally, i.e. making sure both pass through 0. That way you increase saturation without introducing new hue bias.
All that said, why bother - there are more efficient, non-destructive, reversible ways of dealing with saturation/vibrance adjustments in RGB mode in Lightroom, ACR and Photoshop.
|
|
|
|
|
Logged
|
|
|
|
Redcrown
Jr. Member

Offline
Posts: 76
|
 |
« Reply #3 on: April 19, 2012, 11:03:26 PM » |
Reply
|
Bart, thanks for the response. I'm aware of the issues involved with conversions to LAB and back to RGB, having studied most of what Margulis and others have published. Over the years I've logged at least 5 ways to do saturation adjustments, combined with 3 or 4 different ways to make saturation masks, combined with blending mode tricks.
I've recently been revisiting these combination and trying to make a more comprehensive comparison and analysis, and sort out the best of the best. In doing so, I'm trying to push each method to it's limits where something bad happens. Bad like exceeding gamut, compressing tones so detail is lost, or clipping values.
I'm stuck trying to find a "fair" way to compare the LAB method to other RGB methods, because some of these bad things appear to occur very early in LAB sat increases, before much increased saturation is acheived. The clipped (zero) RGB values I see in some tests is just one example of that. Margulis makes the "pro" case for using LAB, I'm trying to understand the "cons", but in a reasonable and defensible test.
Mark, my use of "flat" to describe the AB sat curves in LAB is the same as your "linear inward shifts." I've seen "flat" used often by others, so I followed their lead.
|
|
|
|
|
Logged
|
|
|
|
|
MHMG
|
 |
« Reply #4 on: April 20, 2012, 04:38:00 PM » |
Reply
|
Whether in RGB mode or LAB mode, one can clip values if pushing a hue and/or saturation command too far. In LAB mode, if you simply want a linear increase in overall Saturation, you don't need to use curves. You can use the PS Hue/sat tool and when increasing or decreasing overall saturation, this tool will use a linear multiplier to all a* and b* values. So, for example, if using a +50 value on the sat slider, a 0a,0b pixel will remain 0a, 0b, but a 10a,10b pixel will go to 15a, 15b (i.e both a and b boosted 50%). A -50 value will result in 5a and 5b. At some point if you push saturation values into values that are out of gamut (and perhaps even imaginary, i.e, colors the human eye can't see) then when returning to an RGB colorspace, they can indeed be clipped. But that outcome is no different than whacking them hard while staying in RGB mode. The difference is that in LAB the multiplier works linearly in a visually linear color space, while in RGB mode, linear RGB value increases/decreases aren't as perceptually linear so some visual distortions will take place depending on the RGB color model in use (i.e., some colors shifting in both hue and saturation more than others even when only the saturation slider is being changed) . All that said, much of this is an academic exercise since most photoshop users fly by "visual feedback" only meaning that they don't look at numbers, they just look at the visual changes taking place on their monitor. Where both RGB and LAB numbers in the info tool get very powerful is when you use them to make very subtle adjustments and to make sure you are not pushing things too far such that what you see on the screen is no longer representative of the color actually encoded in the adjusted file. cheers, Mark http://www.aardenburg-imaging.com
|
|
|
|
« Last Edit: April 20, 2012, 04:39:51 PM by MHMG »
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #5 on: April 20, 2012, 04:45:35 PM » |
Reply
|
Mark, I think this sums it up beautifully. Supplemental: How often have you found yourself using the Lab colour model for making saturation adjustments to your images, and if so, what were the considerations?
|
|
|
|
|
Logged
|
|
|
|
|
digitaldog
|
 |
« Reply #6 on: April 20, 2012, 04:50:35 PM » |
Reply
|
The difference is that in LAB the multiplier works linearly in a visually linear color space, while in RGB mode, linear RGB value increases/decreases aren't as perceptually linear so some visual distortions will take place depending on the RGB color model in use (i.e., some colors shifting in both hue and saturation more than others even when only the saturation slider is being changed) .
And if you make the moves initially in RGB, you can have both by fading using luminosity, or a bit in-between using that and opacity. If you do this in Lab, you’re ‘stuck’ with one approach (not to mention the time it takes for two color space conversions but the data loss that might result). All that said, much of this is an academic exercise since most photoshop users fly by "visual feedback" only meaning that they don't look at numbers, they just look at the visual changes taking place on their monitor. Yup. And again, in RGB, you can do this with a bit more control (more visual options0 using blend modes.
|
|
|
|
|
Logged
|
|
|
|
|
MHMG
|
 |
« Reply #7 on: April 20, 2012, 05:29:32 PM » |
Reply
|
Mark, I think this sums it up beautifully. Supplemental: How often have you found yourself using the Lab colour model for making saturation adjustments to your images, and if so, what were the considerations?
Notwithstanding that Dan Margulis's book "Photoshop LAB Color: The Canyon Conundrum and Other Adventures in the Most Powerful ColorSpace" has a prominent spot on my library bookshelf, I do most of my edits in RGB. However, I rely very heavily on the LAB values which can be monitored in the PS info tool, especially when setting critical highlights before going to print, and also when perfecting skin tone values. When you take some time to learn LAB aimpoints for key image qualities like where a diffuse highlight or natural skintone is best placed in the image, then you can prep with confidence on any profiled printer. Ideal RGB aimpoints vary by colorspace, LAB values do not. Also, LAB numbers can serve as proof positive if a print service provider sends you a print that is off in color balance and then tries to blame it on you. If appropriate LAB values for neutrals, skin tones, etc. are associated via the embedded profile within the image file (even the lowly sRGB file), then the reproduction errors clearly rest with the print provider. It's as simple as that. Regrettably, only PS but not Lightroom gives us access to LAB number values. Another feature I really wish Adobe would finally give us in PS and also in Lightroom is a "proof color" option expressed in LAB values for the info tool. Right now, the proof color option in the PS info tool relays only the source file's RGB or CMYK colorspace numbers converted to output. I want to see the output LAB values dynamically posted. As of today, one has to convert to output profile, then switch to LAB using Absolute color rendering to see the predicted print values expressed in LAB. best, Mark
|
|
|
|
|
Logged
|
|
|
|
|
digitaldog
|
 |
« Reply #8 on: April 20, 2012, 06:32:40 PM » |
Reply
|
Ideal RGB aimpoints vary by colorspace, LAB values do not.
True but you can do the same with a single RGB color space. In LR, using percentages in MelissaRGB for skin works just like Lab, you just need to get hip to the ratio’s. The example below is a starting guide: http://digitaldog.net/files/LR_Skintone_Ratio.jpgAnd I think it is much easier for new users to learn the percentage scale than Lab. Lab isn’t all that intuitive. Or you could setup ProPhoto in the soft proof and just use that as your guide and within Photoshop after you render and encode into that space. Now this ancient idea of using CMYK (instead of Lab or an RGB working space you select) needs to go the way of the dodo bird.
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #9 on: April 20, 2012, 07:06:04 PM » |
Reply
|
Notwithstanding that Dan Margulis's book "Photoshop LAB Color: The Canyon Conundrum and Other Adventures in the Most Powerful ColorSpace" has a prominent spot on my library bookshelf, I do most of my edits in RGB. However, I rely very heavily on the LAB values which can be monitored in the PS info tool, especially when setting critical highlights before going to print, and also when perfecting skin tone values. When you take some time to learn LAB aimpoints for key image qualities like where a diffuse highlight or natural skintone is best placed in the image, then you can prep with confidence on any profiled printer. Ideal RGB aimpoints vary by colorspace, LAB values do not. Also, LAB numbers can serve as proof positive if a print service provider sends you a print that is off in color balance and then tries to blame it on you. If appropriate LAB values for neutrals, skin tones, etc. are associated via the embedded profile within the image file (even the lowly sRGB file), then the reproduction errors clearly rest with the print provider. It's as simple as that.
Regrettably, only PS but not Lightroom gives us access to LAB number values. Another feature I really wish Adobe would finally give us in PS and also in Lightroom is a "proof color" option expressed in LAB values for the info tool. Right now, the proof color option in the PS info tool relays only the source file's RGB or CMYK colorspace numbers converted to output. I want to see the output LAB values dynamically posted. As of today, one has to convert to output profile, then switch to LAB using Absolute color rendering to see the predicted print values expressed in LAB.
best, Mark
Mark, very much so - I find Lab the easiest way to navigate what's happening to my colours and I use it as the secondary read-out in Photoshop. I too regret that it is not available in Lightroom and I have recommended that they provide it. It's dead-easy to evaluate the existence and nature of casts using a* b* values, and it provides excellent guidance about the extent of colour rebalancing that may be needed to say the Green and Blue Curves in RGB colour space because those curves work on the basis of opponent colours very much like the a and b channels in Lab do; but I work only in RGB mode. So yes, very good for measurement purposes and suffers all the issue Andrew raises about using it as a colour editing mode. I should mention that SilverFast Ai Studio also provides Lab measurement capability in its Densitometer and in the read-outs for its Neutral balancing tool. I don't think it's difficult to get one's head around it - all depends on how it's explained and whether users want to get used to it.
|
|
|
|
|
Logged
|
|
|
|
|
deejjjaaaa
|
 |
« Reply #10 on: April 20, 2012, 07:40:09 PM » |
Reply
|
And I think it is much easier for new users to learn the percentage scale than Lab.
much easier to deal w/ 2 numbers than w/ 3 numbers.
|
|
|
|
|
Logged
|
|
|
|
|
MHMG
|
 |
« Reply #11 on: April 20, 2012, 07:45:20 PM » |
Reply
|
True but you can do the same with a single RGB color space. In LR, using percentages in MelissaRGB for skin works just like Lab, you just need to get hip to the ratio’s. The example below is a starting guide: http://digitaldog.net/files/LR_Skintone_Ratio.jpgAnd I think it is much easier for new users to learn the percentage scale than Lab. Lab isn’t all that intuitive. LAB isn't really taught much to photographers. So, it's at a real disadvantage in terms of people taking the time to become familiar with it, but if one does take the time to master it, it's definitely more universally applicable to making careful image edits guided/verified by numbers. Melissa RGB uses an sRGB gamma curve, so required RGB percentages in shadows will be different than those needed to achieve similar hue and chroma in mid tone or highlight areas. This situation ultimately makes a perceptually linear colorspace like LAB much easier to interpret across the full tone scale, IMHO, at least for me.  cheers, Mark
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #12 on: April 20, 2012, 07:48:39 PM » |
Reply
|
much easier to deal w/ 2 numbers than w/ 3 numbers.
Look at this way: if you want to understand your colours in RGB, RGB bundles Luminance, Chroma and Hue into one number per channel for three channels. So you need to look at 3 numbers and you also need to remember that the higher the numbers the brighter the colours, and that a value is only neutral if R=G=B.. If you want to understand hue and saturation in Lab, all you need to look at are 2 numbers: a* and b*, and if both are zero the hue is Gray. Then if you're interested in Luminance, you see its explicit value separately - no guessing, no disentangling. To my mind, this is much simpler - once my mind embraced the concept.
|
|
|
|
« Last Edit: April 20, 2012, 07:50:19 PM by Mark D Segal »
|
Logged
|
|
|
|
|
digitaldog
|
 |
« Reply #13 on: April 20, 2012, 10:28:10 PM » |
Reply
|
much easier to deal w/ 2 numbers than w/ 3 numbers.
Depends on the numbers. And the user. Negative numbers are not necessarily intuitive even if there are only two.
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #14 on: April 21, 2012, 07:02:37 AM » |
Reply
|
Depends on the numbers. And the user. Negative numbers are not necessarily intuitive even if there are only two.
Yes, and it depends on how the user is trained to think. If you think of negative as symbolizing "cool" and positive as symbolizing "warm", and you relate that to our other training that blues and greens are "cool" colours and reds and yellows "warm" colours, one doesn't think of minus signs, but of cool or warm, and that helps our visual perception of what's going on in our images. A minus sign just becomes a trigger of another concept.
|
|
|
|
|
Logged
|
|
|
|
|
deejjjaaaa
|
 |
« Reply #15 on: April 21, 2012, 07:43:12 AM » |
Reply
|
Depends on the numbers. And the user. Negative numbers are not necessarily intuitive even if there are only two.
so do you have proper skin tones w/ negative a or b in lab in your examples ?
|
|
|
|
|
Logged
|
|
|
|
|
deejjjaaaa
|
 |
« Reply #16 on: April 21, 2012, 07:46:08 AM » |
Reply
|
Yes, and it depends on how the user is trained to think. If you think of negative as symbolizing "cool" and positive as symbolizing "warm", and you relate that to our other training that blues and greens are "cool" colours and reds and yellows "warm" colours, one doesn't think of minus signs, but of cool or warm, and that helps our visual perception of what's going on in our images. A minus sign just becomes a trigger of another concept.
a beauty of it 
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #17 on: April 21, 2012, 07:49:06 AM » |
Reply
|
I suggest you open Photoshop, set your secondary info display to Lab mode, open a few photos that have varying skin tones, pass your eyedropper over the skin tones and observe the a* and b* colour values. You'll get the hang of it.
|
|
|
|
|
Logged
|
|
|
|
Mark D Segal
Contributor
Sr. Member
Offline
Posts: 6525
|
 |
« Reply #18 on: April 21, 2012, 07:51:44 AM » |
Reply
|
OK, you got the hang of it!
|
|
|
|
|
Logged
|
|
|
|
|
digitaldog
|
 |
« Reply #19 on: April 21, 2012, 09:48:58 AM » |
Reply
|
Yes, and it depends on how the user is trained to think.
Absolutely. Some find the metric system confusing after being raised on the US standard system yet the later seems far less intuitive numerically. It is what you are brought up with. If you think of negative as symbolizing "cool" and positive as symbolizing "warm", and you relate that to our other training that blues and greens are "cool" colours and reds and yellows "warm" colours, one doesn't think of minus signs, but of cool or warm, and that helps our visual perception of what's going on in our images. A minus sign just becomes a trigger of another concept. An excellent analogy and approach!
|
|
|
|
|
Logged
|
|
|
|
|