Loading (unpacking), processing, but no interpolation
I've been using LibRaw for many years to grab the raw Bayer matrix out of files. It's worked like a charm and I love it. In some places, I'll have it not only load the raw data, but run its own debayers, but in other places, I need to be able to debayer on my own. Hence, the grabbing the raw Bayer matrix out.
As I understand it, though, if I set:
RawProcessor.imgdata.params.use_camera_wb = 1;
RawProcessor.imgdata.params.no_iterpolation = 1;
RawProcessor.dcraw_process();
libraw_processed_image_t *image = RawProcessor.dcraw_make_mem_image(&rval);
I should have an image in memory that has not been demosaic'ed. Yet, image->colors is 3, not 1.
Is what I'm doing impossible here or can I get a processed file still in CFA format, having scaled the color channels appropriately to deal with the white balance?
Craig
Recent comments