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 (2020). matlab-unpackRaw (https://www.github.com/EastEriq/matlab-unpackRaw), GitHub. Retrieved .