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;
libraw_processed_image_t * pri = lr.dcraw_make_mem_image(&ret);

And then finally reading pri->data[]


noise reduction and highlight

noise reduction and highlight recovery are not enabled by default

-- Alex Tutubalin @LibRaw LLC

So calling dcraw_process()

So calling dcraw_process() with just the settings written above will create a RGB image without any further kind of processing? Thanks!

if you do not want any color

if you do not want any color profile, you need to set params.output_color=0

With this setting image to be white balanced, demosaiced and scaled to fill 16-bit range.

-- Alex Tutubalin @LibRaw LLC