Add new comment

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

Hi,

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;
Rawprocessor.openfile(file);
Rawprocessor.unpack();
Rawprocessor.imgdata.params.output_bps = 16;
 
Rawprocessor.imgdata.params.gamm[0] = 1.;
Rawprocessor.imgdata.params.gamm[1] = 1.;
 
Rawprocessor.dcraw_process();

Forums: