How can I read "raw" camera images using MATLAB?

I am working with unprocessed, or "raw", images from my digital camera. I would like to load these images into MATLAB for processing or analysis.

 Accepted Answer

The ability to read "raw" image files is not available in MATLAB. However, you can read those files using low level File I/O functions.
To read a "RAW image file, we need to know exact dimensions (in pixels) and the binary encoding style used for storing the image. Please find the attached example of a sample file and code to read it in MATLAB.
 
Also, there is a post on MATLAB Central that may be helpful:
 
 
Please note that MathWorks Technical Support does not support user-contributed files.

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Products

Release

R14SP2

Community Treasure Hunt

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

Start Hunting!