Add new comment

libraw do not contain any

libraw do not contain any color->BW conversion code.
So, you may choose from two options
* convert interpolated (by libraw) rgb data to BW using your preferred formula
* or implement own raw to BW postprocessing instead of LibRaw::dcraw_process()

If you're processing data from 'converted' camera (initially color, but CFA removed, such as conversion), you may try to set imgdata.idata.colors to 1 after unpack() phase

-- Alex Tutubalin @LibRaw LLC