Add new comment

Question about Gamma correction

Hi,
I had a question about Gamma correction applied by libraw during the call to dcraw_process. I came across this post https://www.libraw.org/node/1968 but I have a couple of follow-up questions.

1. The libraw documentation says by default gamm[] has values for the BT.709 workspace. Does this mean that I need to update this value if I request data in the sRGB or Adobe colorspaces? What gamm should I use for the Wide Gamut colorspaces?

2. Is the gamma correction applied when I request data in the camera space OR do I need to explicitly gamm[0] and gamm[1] to 1 to obtain linear output?

I looked at convert_to_rgb() and it does not appear to update the gamm depending on the output colorspace.

Dinesh

Forums: