Lightness algorithm

Hi all,

I was interested into the algorithm for the lightness property which rawtherapee is using. Can someone address me where this get computed into the source code?

I believe most settings in the main exposure block are used to form a modifier curve here:
https://github.com/Beep6581/RawTherapee/blob/1e4f41bc0509149a55a95d29e15e4c5d69e65234/rtengine/curves.cc#L444-L704

The lightness translates to the br parameter. It seems a bit complicated…

It depends on what lightness you are talking about specifically. We typically refer to the L* of L*a*b* and friends as lightness. There are many variations, depending how we go from and to (s)RGB. On top of that, people have other uses for the term lightness…