hdrread

Read high dynamic range (HDR) image

Syntax

hdr = hdrread(filename)

Description

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.

Examples

hdr = hdrread('office.hdr');
rgb = tonemap(hdr);
imshow(rgb);

References

[1] Larson, Greg W. "Radiance File Formats"http://radsite.lbl.gov/radiance/refer/filefmts.pdf

Was this topic helpful?