problem setting up gamma curve to use on .CR2 raw file


I'm having a problem when trying to set up a gamma curve to use when processing data from .CR2 file.

The result is always the same (doesn't matter the values i set up).

Here's what my code looks like (pseudocode):

Rawprocessor.imgdata.params.output_bps = 16;
Rawprocessor.imgdata.params.gamm[0] = 1.;
Rawprocessor.imgdata.params.gamm[1] = 1.;


What happens if you use dcraw

What happens if you use dcraw_emu sample with different -g parameters?

-- Alex Tutubalin

It was my fault in the end

Hi, I just found out I forgot to respond, so I'm gonna do it now and try to remember where the problem was and what was the solution. :)

In the end it was (as it usually is with the stuff you're learning to use) my own fault (that much I remeber).

I'm not sure if it was because I was setting the values of gama etc. before LibRaw::unpack() or had error in build settings causing the new code to be built elsewhere and was always running the old project. (Or maybe both, so many things happen when you're trying to figure something out :))