- mosaic
A mosaic of class SpatRaster, generally imported with
mosaic_input().
- index
A character value (or a vector of characters) specifying the
target mode for conversion to a binary image. Use pliman_indexes_rgb()
and pliman_indexes_me() to see the available RGB and multispectral
indexes, respectively. Users can also calculate their own index using R, G, B, RE, NIR, SWIR, and TIR bands (eg., index = "R+B/G") or using the
names of the mosaic's layers (ex., "(band_1 + band_2) / 2").
- r, g, b, re, nir, swir, tir
The red, green, blue, red-edge, near-infrared,
shortwave Infrared, and thermal infrared bands of the image, respectively.
By default, the function assumes a BGR as input (b = 1, g = 2, r = 3). If a
multispectral image is provided up to seven bands can be used to compute
built-in indexes. There are no limitation of band numbers if the index is
computed using the band name.
- plot
Plot the computed index? Defaults to TRUE.
- in_memory
Logical, indicating whether the indexes should be computed
in memory. Defaults to TRUE. In most cases, this is 2-3 times faster, but
errors can occur if mosaic is a large SpatRaster. If FALSE, raster
algebra operations are performed on temporary files.
- output
Character(1), either "memory" or "disk".
If "memory", the function returns a terra::SpatRaster object assembled in memory.
If "disk", each index layer is written out to a temporary GeoTIFF and the function returns
a terra::SpatRaster object that points to those rasters. Default is "memory".
- workers
numeric. The number of workers you want to use for parallel
processing when computing multiple indexes.
- verbose
Whether to display progress messages.