Clamps an image to a user-specified range, ignoring the alpha channel.
render_clamp(
image,
min_value = 0,
max_value = 1,
filename = NA,
preview = FALSE,
...
)3-layer RGB/4-layer RGBA array, rayimg class, or filename of an image.
Default 0. Minimum value to clamp the RGB channels in the image to.
Default 1. Maximum value to clamp the RGB channels in the image to.
Default NA. Filename
Default FALSE. If TRUE, it will display the image in addition
to returning it.
Arguments to pass to either jpeg::readJPEG, png::readPNG, or tiff::readTIFF.
A rayimg RGBA array.