Performs a min-max contrast stretch on an input greytone image.
wbt_min_max_contrast_stretch(
input,
output,
min_val,
max_val,
num_tones = 256,
wd = NULL,
verbose_mode = FALSE,
compress_rasters = FALSE
)
Input raster file.
Output raster file.
Lower tail clip value.
Upper tail clip value.
Number of tones in the output image.
Changes the working directory.
Sets verbose mode. If verbose mode is False, tools will not print output messages.
Sets the flag used by WhiteboxTools to determine whether to use compression for output rasters.
Returns the tool text outputs.