File Exchange

image thumbnail


version (14.5 KB) by Enrico Segre
mex for importing raw camera files into MATLAB images


Updated 21 Mar 2019

From GitHub

View Version History

View license on GitHub

This small mex was created with a simple purpose in mind - import images written in raw camera files into matlab, without an additional preliminary conversion to a common image file like jpeg or tiff.

In order to do it, I rely on the external library LibRaw, which is well maintained and supports dozens of modern and old raw file formats.

The need arose because other MATLAB central contributions don't do that - either they use dcraw which implies writing an additional image file, or use very old importing code which supports few raw file formats.

Cite As

Enrico Segre (2021). matlab-unpackRaw (, GitHub. Retrieved .

Comments and Ratings (1)


sadly I'm having no success compiling the mex using r2020a and libraw 0.20

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: MatRaw, Read RAW camera images, RAW Camera File Reader

Community Treasure Hunt

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

Start Hunting!