Description Usage Arguments Details Value References Examples
View source: R/mask_artifacts.R
Mask artifacts
1 | mask_artifacts(x, kernel_sizes = 5, times_sd = 3)
|
x |
|
kernel_sizes |
numeric. Size of the kernels, could be one or more. See details. |
times_sd |
numeric. Thresold value. See details. |
Is a faster approach that I pick up from Hengl and Reuter (2009). The algorithm compute the average elevation with a kernel and compute the difference between the average elevation and the elevation at the core cell. A threshold is used to classify this difference.
If users uses several kernels, the masks are aggregated.
x linkS4class{RasterLayer}
. Binary image.
Hengl, T., Reuter, H.I., 2009. GEOMORPHOMETRY Concepts, Software, Applications, Developmen. ed. Elsevier, Amsterdam. (p. 100)
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.