matlab - How to convert a matrix containing a non-demosaiced image to a RAW image file, openable by Lightroom? -


i have camera module, reading out "raw", non-demosaiced image data (this camera module uses bayer bggr filter). storing in matlab matrix. aware matlab can demosaic image me, use adobe lightroom's demosaicing algorithm , processing tools.

do tools exist convert matrix (using matlab or otherwise) standard raw file, such adobe's dng format? understand dng similar tiff, can leveraged?

as know, can use adobe dng sdk. download adobe dng sdk here.

  1. adboe dng sdk can read dng format , save dng tif format.
  2. if want read bayer format( non-demosaiced image data ), can try hack adobe dng sdk. replace of bayer data before demosaic.

something need notice.

  1. you must use correct "bayer type"( bggr , rggb.. etc ).

  2. you must use correct "bits per sample".

  3. you must use correct "width" , "height".


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -