Add new comment

Cr3 Raw wrong Whitebalance

Hello,

I'm working on a project in whiche I need to load a Cr3 Raw from the Canon EOS 250D, edit further in a c# programm via GDI and save it as Jpg, Tiff or png.
As far I can load the raw file via Libraw and copy the imagebuffer in my c# programm.

After I save the image, the Whitebalance isn't equal to the Cr3 file opened in Photoshop.

How it looks out ouf PS
http://neuland.wtf/img/ps.jpg

How it looks out auf Libraw/C#App
http://neuland.wtf/img/libraw.jpeg

Maybe I'm missing something.

My Raw loading code looks like this:

int LoadRaw(char *charBuffer, int size)
{
  int i, ret, verbose = 0, output_thumbs = 0;
  RawProcessor.open_file(charBuffer);
 
  // Try to use camera WB and RGB colorformat
  libraw_data_t imgD = RawProcessor.imgdata;
  imgD.params.use_camera_wb = 1;
  imgD.params.user_flip = 0;
  imgD.params.output_color = 1;
  RawProcessor.unpack();
  RawProcessor.get_decoder_info(&decInfo);
  RawProcessor.dcraw_process();
  pRgbBitmap = RawProcessor.dcraw_make_mem_image(&ret);
}

Forums: