L* gamma

Is there a way to specify libraw to use the L-star gamma function? Or do I need to manually apply the function, and then specify the libraw linear function?
I mean this formula (from lindblum.com): (linear <= (216.0 / 24389.0)) ? (linear * 24389.0 / 2700.0) : (1.16 * Math.pow(linear, 1.0 / 3.0) - 0.16);


Output curve is used only on

Output curve is used only on output phase (dcraw_make_mem_image or dcraw_ppm_tiff_writer)

So, you may modify source and replace calls to gamma_curve(...) by own output curve creation.

No direct way in LibRaw to do that, we'll consider to add some interface for user-defined curve in 0.19 release.

-- Alex Tutubalin

Thanks for the quick response

Thanks for the quick response.
I found the answer to my question. It's very simple. For L *, use gamm [0] = 1/3 and gamm [1] = 9.033.

With best wishes, Konstantin