Libraw doesn't use camera-provided white balance

192 Views Asked by At

I tried this:

    LibRaw iProcessor;
    iProcessor.open_file(filename);
    iProcessor.unpack();
    iProcessor.imgdata.params.use_auto_wb = 1;
    iProcessor.imgdata.params.use_camera_wb = 1;
    iProcessor.dcraw_process();
    iProcessor.raw2image();

But this produces a wrong white balance (always too green).

1

There are 1 best solutions below

0
On

Figured it out. I had to remove the "raw2image" part.