render_clamp | R Documentation |
Clamps an image to a user-specified range
render_clamp(image, min_value = 0, max_value = 1, preview = FALSE, ...)
image |
Image filename or 3-layer RGB array. |
min_value |
Default |
max_value |
Default |
preview |
Default |
... |
Arguments to pass to either |
3-layer RGB array of the processed image.
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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.