Add new comment

Demosaic raw without any other post-processing

Hello again,

is there some kind of best practise to just convert/demosaic a raw file without doing any other post-processing.

Basically I need the raw just converted to 16bits per channel RGB without noise reduction, highlight clipping or anything else.

I get my image data with

LibRaw lr;
 
lr.imgdata.params.output_bps = 16;
lr.imgdata.params.gamm[0] = 1;
lr.imgdata.params.gamm[1] = 1;
lr.imgdata.params.no_auto_bright = 1;
lr.imgdata.params.use_camera_wb = 1;
 
lr.open_file(filename);
lr.unpack();
lr.dcraw_process();
 
libraw_processed_image_t * pri = lr.dcraw_make_mem_image(&ret);

And then finally reading pri->data[]

Forums: