This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Read high dynamic range (HDR) image


hdr = hdrread(filename)


hdr = hdrread(filename) reads the high dynamic range (HDR) image from the file specified by filename. hdr is an m-by-n-by-3 RGB array in the range [0,inf) of type single. For scene-referred data sets, these values usually are scene illumination in radiance units. To display these images, use an appropriate tone-mapping operator.

Class Support

The output image hdr is an m-by-n-by-3 image of type single.


collapse all

Read high dynamic range image into the workspace.

hdr = hdrread('office.hdr');

Convert the HDR image to a lower dynamic range, suitable for display.

rgb = tonemap(hdr);

Display the image.



[1] Larson, Greg W. “Radiance File Formats"

Introduced in R2007b

Was this topic helpful?