DPX is a high dynamic range file format used for digital motion picture stills and synthetic imagery. The readdpx function extracts image metadata and returns image Pixels for each Frame.
The DPX format contains numerous bit-depth, pixel layout, and Colorspace combinations. This function currently only supports uncompressed 8-bit per sample grayscale and RGB packed images.
This function shows how to use MATLAB's TYPECAST and SWAPBYTE functions to parse files, which is the subject of a January 2006 MATLAB Digest article: .