View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
DPX file reader

4.5 | 7 ratings Rate this file 6 Downloads (last 30 days) File Size: 3.58 KB File ID: #9683 Version: 1.1

DPX file reader


Jeff Mather (view profile)


18 Jan 2006 (Updated )

A DPX file parser .

| Watch this File

File Information

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: <link TBD>.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (17)
18 Mar 2016 MechtEngineer

Matlab 2015b now has a native DPX file reader (but no writer), so use that if you have access.

I tried this code at the below link, which claims to read and write DPX files greater than 8 bit. My 10bit DPX files were not read correctly (in Photoshop CS6 they display fine), and I did not try export.


Comment only
18 Mar 2015 losschmittos

Thanks a lot!
Can anyone send me the code which can read 10 bit or 12 bit?

08 Jul 2011 Lars Karlsson

I'm also looking for the version with support of 10 bit RGB. Can anyone e-mail it to me or advise me on where it can be downloaded.
E-mail me at

Comment only
30 Jun 2011 Xiaojuan Gu

It is useful for me.

27 Feb 2011 JUNWOO

JUNWOO (view profile)

Thank you.
I want a code which can read 10 bit or 12 bit.
please send me a code at

Comment only
25 Feb 2011 JUNWOO

JUNWOO (view profile)

Thank you.
I want a code which can read 10 bit or 12 bit.
please send me a code at

Comment only
28 Oct 2010 Tam Chu

Would anyone tell me how to extend this code to handle 10 and 12 bit images? Thank you.

Comment only
17 Feb 2010 Andrew Léonce

Hello, I would also like to have a copy of the extended version of this script. If you would be so kind as to leave a link on here so that it is available, that would be fantastic.

Kind regards,

Comment only
16 Dec 2009 Ram prasad

Thank you. very useful file for me.
dear 'Amilcar do Carmo Lucas' please tell me how to download your version of the file (ie 10 bit support). or please send me a copy at
Thank you very much

Comment only
17 Sep 2009 Do Quoc Bao

Very useful !!
But I want a code which can read RGB 10 bit dpx :(

19 May 2009 josef Barcuch

Hi, I havent found .m file with extension fot 10bit dpx, can it be downloaded somewhere ?

Comment only
09 Jun 2008 sanbong lee

packed dpx

09 Jun 2008 sanbong lee


15 Apr 2008 mohamed shalapy


Comment only
15 Jan 2008 Glen Alexander

great work hashing through the SMPTE docs. :)

15 Jan 2008 Amilcar do Carmo Lucas

OK, now I extended the support to 8,10,12,14 and 16 bits per component in both RGB and grayscale, and both big-endian and little endian :)

Comment only
19 Sep 2007 Amilcar do Carmo Lucas

This is nice but does not provide support for 10 bit per color sample RGB images.

So I added support for it. I've e-mailed the author about it, but so far I got no reply.

If someone wants the code, just drop me a line.

08 Nov 2010 1.1

BSD License

Contact us