I just push a new change to "locallab branch".
Now I have add "curve mode" to locallab.
Currently this only applies to the Retinex curve, which was previously global.
The system is a bit complex, but it works and moreover I think (except may be for the new module "curve" ... to check) that the set is more robust
Probably, I will add another curve Luminance according to luminance L=f(L)...or another If you tell me which