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.
Enrico Segre (2023). matlab-unpackRaw (https://github.com/EastEriq/matlab-unpackRaw), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Versions that use the GitHub default branch cannot be downloaded