render_clamp {rayimage} | R Documentation |
Clamp Image
Description
Clamps an image to a user-specified range
Usage
render_clamp(image, min_value = 0, max_value = 1, preview = FALSE, ...)
Arguments
image |
Image filename or 3-layer RGB array. |
min_value |
Default |
max_value |
Default |
preview |
Default |
... |
Arguments to pass to either |
Value
3-layer RGB array of the processed image.
Examples
if(run_documentation()){
#The rnage of the unchanged image
range(dragon)
}
if(run_documentation()){
#Clamp the maximum and minimum values to one and zero
render_clamp(dragon) |>
range()
}
[Package rayimage version 0.11.0 Index]