powered by
Clamps an image to a user-specified range
render_clamp(image, min_value = 0, max_value = 1, preview = FALSE, ...)
3-layer RGB array of the processed image.
Image filename or 3-layer RGB array.
Default 0. Minimum value to clamp the image to.
0
Default 1. Maximum value to clamp the image to.
1
Default FALSE. If TRUE, it will display the image in addition to returning it.
FALSE
TRUE
Arguments to pass to either jpeg::readJPEG, png::readPNG, or tiff::readTIFF.
jpeg::readJPEG
png::readPNG
tiff::readTIFF
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() }
Run the code above in your browser using DataLab