Description Usage Arguments Value Note Author(s)
Internal function (used by s2_mask) which smooths and buffers a 0-1 mask image in order to reduce the roughness of the mask obtained from SCL classification (which is done pixel by pixel). See details.
1 2 | smooth_mask(inmask, binpaths, tmpdir = tempdir(), radius = 250,
buffer = 250, namask = NULL)
|
inmask |
The path of the input 0-1 mask (where 0 represents the area to be masked, 1 the cleen surface). |
binpaths |
list of paths of binaries. |
tmpdir |
(optional) Path where intermediate files (VRT) will be created. Default is a temporary directory. |
radius |
(optional) Numerical (positive): the size (in the unit of
|
buffer |
(optional) Numerical (positive or negative): the size of the
buffer (in the unit of |
namask |
(optional) The path of an input 0-1 mask where 0 represents the area of the original file with NA values (which should not be smoothed / buffered). Default (NULL) means that no NA values are presente. |
The path of the smoothed mask.
License: GPL 3.0
Luigi Ranghetti, phD (2018) ranghetti.l@irea.cnr.it
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.