Read/Write EXR images

Language: MATLAB

Last modified: 11 March 2008

OpenEXR is an image file format for high dynamic-range images. The software on this page adds support for reading and writing EXR images in MATLAB. More information on OpenEXR, with example images and code, can be found at openexr.com.

Source code and instructions

Usage

Read images and alpha channel:

>> im = exrread(filename);
>> [im,mask] = exrread(filename);

Write images with or without alpha channel:

>> exrwrite(im,filename)
>> exrwrite(im,mask,filename)