Description Usage Arguments Details Value Examples
Erosion and dilation filter of a raster image.
1 | pixFilter(x, y, method)
|
x |
Object of class RasterLayer. |
y |
A numeric element. |
method |
A character element. One of "erode" or "dilate". |
Uses focal to filter x using either an erosion or a dilation filter, specified by method. If "erosion" is chosen, the function will identify and filter out border pixels around each cluster of pixels in x. Small or isolated groups of pixels will also be removed. If "dilation" is set, the function will increase the size of each cluster of pixels and simultaneously remove all gaps within them. The size of the buffer used in this function is defined by y and is expressed in number of pixels.
A RasterLayer.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.