tm_reinhard {picohdr} | R Documentation |
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.
tm_reinhard(arr)
tm_reinhard_basic(arr)
tm_reinhard_variant(arr)
arr |
array or matrix |
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"
New array with adjusted color values
filename <- system.file("image", "rstats.pfm.bz2", package = "picohdr")
image <- read_pfm(filename)
image <- tm_reinhard_basic(image)
image <- adj_gamma(image)
plot(image)