Libraw doesn't use camera-provided white balance

180 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 answers

0
Stefan Monov On

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