Reading a camera CR2 (raw) file into MATLAB

10 views (last 30 days)
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.

Accepted Answer

Matija
Matija on 12 Dec 2013
Edited: Matija on 12 Dec 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.

More Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!