0

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).

Stefan Monov
  • 11,332
  • 10
  • 63
  • 120

1 Answers1

0

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

Stefan Monov
  • 11,332
  • 10
  • 63
  • 120