Render high dynamic range image for viewing
RGB = tonemap(HDR)
RGB = tonemap(HDR, param1, val1, ...)
RGB = tonemap(HDR) converts
the high dynamic range image
HDR to a lower dynamic
RGB, suitable for display, using a
process called tone mapping. Tone mapping is a technique used to approximate
the appearance of high dynamic range images on a display with a more
limited dynamic range.
RGB = tonemap(HDR, param1, val1, ...) performs
tone mapping where parameters control various aspects of the operation.
The following table lists these parameters.
|A two-element vector in the form |
|A numeric value that specifies the saturation of colors in
the rendered image. When the value is greater than 1, the colors are
more saturated. When the value is in the range |
|A two-element vector of the form |
The high dynamic range image
HDR must be
The output image
RGB is an m-by-n-by-3
Load a high dynamic range image, convert it to a low dynamic range image while deepening shadows and increasing saturation, and display the results.
hdr = hdrread('office.hdr'); imshow(hdr) rgb = tonemap(hdr, 'AdjustLightness', [0.1 1], ... 'AdjustSaturation', 1.5); figure; imshow(rgb)