tm_reinhard {picohdr} | R Documentation |
Reinhard's global tone mapping
Description
Tone mapping is a method for adapting an HDR image for display on a low dynamic range device. There are three included variants of Reinhard's global tone mapping operator.
Usage
tm_reinhard(arr)
tm_reinhard_basic(arr)
tm_reinhard_variant(arr)
Arguments
arr |
array or matrix |
Details
tm_reinhard()
[RGB] Reinhard's operator with a correction for the maximum luminance
tm_reinhard_basic()
[RGB images] Reinhard's operator applied equally to all colour channels
tm_reinhard_variant()
[RGB or Gray images] A combination of the above two methods
These functions are based on Reinhard (2002) "Photographic tone reproduction for digital images"
Value
New array with adjusted color values
Examples
filename <- system.file("image", "rstats.pfm.bz2", package = "picohdr")
image <- read_pfm(filename)
image <- tm_reinhard_basic(image)
image <- adj_gamma(image)
plot(image)
[Package picohdr version 0.1.1 Index]