View source: R/render_tonemap.R
| render_tonemap | R Documentation |
Reinhard / Uncharted(Hable) / HBD operators in linear
render_tonemap(
image,
method = c("raw", "reinhard", "uncharted", "hbd"),
exposure_bias = 2,
W = 11.2,
filename = NULL,
preview = FALSE
)
image |
Default |
method |
Default |
exposure_bias |
Default |
W |
Default |
filename |
Default |
preview |
Default |
A rayimg RGBA array.
# Plot unchanged image
render_tonemap(dragon, preview = TRUE)
# Plot Reinhard tonemapped image
render_tonemap(dragon, method = "reinhard", preview = TRUE)
# Plot Uncharted/Hable tonemapped image
render_tonemap(dragon, method = "uncharted",preview = TRUE)
# Plot Uncharted/Hable tonemapped image, white point adjusted
render_tonemap(dragon, method = "uncharted", W=11.4, preview = TRUE)
# Plot Uncharted/Hable tonemapped image, exposure adjusted
render_tonemap(dragon, method = "uncharted", exposure_bias = 1,preview = TRUE)
# Plot Hejl-Burgess-Dawson tonemapped image, exposure adjusted
render_tonemap(dragon, method = "hbd",preview = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.