I have a camera module, from which I am reading out "RAW", non-demosaiced image data (this camera module uses a Bayer BGGR filter). I am currently storing this in a MATLAB matrix. I am aware that MATLAB can demosaic this image for me, but I would like to use Adobe Lightroom's demosaicing algorithm and processing tools.
Do any tools exist to convert this matrix (using MATLAB or otherwise) into a standard RAW file, such as Adobe's DNG format? I understand that DNG is very similar to TIFF, can this be leveraged?
As I know, you can use the Adobe DNG SDK. Download Adobe DNG SDK from here.
Something need to notice.
You must use correct "bayer type"( BGGR , RGGB.. etc ).
You must use correct "bits per sample".
You must use correct "width" and "height".