Hi,
can I use LibRaw for demosaicing plain RGGB data (i mean file with no metadata, just pixels stored as [R G R G R G; G B G B G B; ...]?
If I understand it correctly I need to call dcraw_process() and dcraw_make_mem_image() but I do not know how to prepare the buffer and tell the LibRaw size etc.
thanks
Jan
In last master snapshot
In last master snapshot (https://github.com/LibRaw/LibRaw) we've added open_bayer() call
Look into: https://github.com/LibRaw/LibRaw/blob/master/Changelog.txt for docs
and into https://github.com/LibRaw/LibRaw/blob/master/samples/openbayer_sample.cpp for usage sample
-- Alex Tutubalin @LibRaw LLC
Thanks for quick response, I
Thanks for quick response, I will try that.
8-Bit Images Working Now
Alex fixed the problem with open_bayer() 8-bit images. Fix is documented here https://www.libraw.org/comment/4678#comment-4678 :)
It works!
Hi - to anyone else who wants to use open_bayer() before anything later than 0.18.2 is stable-released, this is a link to the Github page at the earliest (least risky) version which supports open_bayer().
https://github.com/LibRaw/LibRaw/tree/d4c4f5c8e4a2c5db56287f805d44b590ac...
This works perfectly for 16bit (EDIT: and now 8bit) RAW images without any header or metadata.
(wish I could delete comments but I can only edit them so I must look really silly with two comments in a row)