Reading a camera CR2 (raw) file into MATLAB

10 vues (au cours des 30 derniers jours)
Matija
Matija le 11 Déc 2013
Commenté : Nicolò le 12 Mai 2017
Hello all,
withouth any experience and not much technical knowledge, I am trying to read CR2 files in MATLAB. For scientific purposes, I need the raw data right out of the sensor, exactly as it was recorded.
I started with Steve's blog "Tips for reading a camera raw file into MATLAB":
...and got lost soon :-)
I converted CR2 files in DNG files, but can not get the linearization curve. In Steve's blog he is working with NEF files and is getting the curve...Obviously it is not the case with CR2 files. With no knowledge about the curve, there is no guarantee that image is presented exactly as it was recorded.
If I use Adobe DNG Converter to do the dematrixing by choosing Custom > Linear(demosaic) and Uncompressed, will that answer my prays?
I doubt while reading some answers on the Adobe Community:
Please help!
Thanks in advance, Matija.

Réponse acceptée

Matija
Matija le 12 Déc 2013
Modifié(e) : Matija le 12 Déc 2013
Hello,
In the mean time I found a useful article:
Capturing linear images
I just installed DCRAW and am testing it; this freeware gives you control over all processing being done in conversion step from CR2 to i.e. PPM.
For more details on DCRAW please check:
Please provide your feedback!
M.
  1 commentaire
Nicolò
Nicolò le 12 Mai 2017
Thank you. I had the same problem, solved with dcraw ;)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Convert Image Type dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by