Author Topic: Increasing saturation in the LAB colour space  (Read 771 times)

Offline Alan4908

  • Newcomer
  • Posts: 2
Increasing saturation in the LAB colour space
« on: 2019 April 03 05:51:58 »
Hello

I'm relatively new to Pixinsight but I'm slowly working my way through the many different functions. One function that I'm having difficulty with is understanding is the CurvesTransformation tool. Specifically, I'd like to work in the LAB colour space to increase the colour saturation of my images. The reason I wish to do this in the LAB colour space, is because it was designed to the perceptively uniform for human vision. 

Unfortunately, I cannot see how to achieve this without impacting the colour balance of the image. For instance, say I take an RGB image and use the CurvesTransformation tool. I select the "a" channel in the LAB space by clicking on "a" channel button. If I now modify the "a" channel by first clicking on the point 0.5, 0.5 and I pull down on the lower curve portion I will create a symmetric "S" shaped curve. If I now apply the result to the RGB image, the saturation of the reds are increased but the colour balance of the image has changed.  I don't understand this behavior since the CurvesTransformation document states that the   "The CIE a* chrominance component corresponds to the red/green ratio" - so if I create a symmetric "S" curve on the a channel then why does it introduce a colour imbalance ?

I should point out that increasing colour saturation in non LAB space work as expected - eg  clicking on the CurvesTransformation "S" button (saturation) and modifying the curve changes the saturation without introducing a colour imblance.  I'm also aware of the ColorSaturation tool, which works as expected - eg colour imbalance is again not created.

So, can someone please explain to me how you increase colour saturation in the LAB space without impacting the colour balance of the image ? 

Alan

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Increasing saturation in the LAB colour space
« Reply #1 on: 2019 April 03 06:33:47 »
Hi Alan,

Welcome to PixInsight Forum. To work on color saturation using a perceptually uniform color space, use the CIE L*c*h color space instead of CIE L*a*b* with the CurvesTransformation tool. Modify the 'c' curve instead of 'a' and 'b'. The c* component represents the relative saturation of color (also referred to as 'colorfulness'). As long as you don't force the curve too much, so you stay within the limits of the color space, modifying the c* component won't alter color balance at all.

The S curve works on an HSL color space that is not perceptually uniform, but allows you to control saturation with more latitude than the c curve.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Alan4908

  • Newcomer
  • Posts: 2
Re: Increasing saturation in the LAB colour space
« Reply #2 on: 2019 April 03 07:33:46 »
OK - thanks for the information. I shall explore !

Alan