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);

See Also

hdrwrite, makehdr, tonemap

Reference

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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS