Perform morphological erosion of a window, a line segment pattern or a point pattern by a disc.
1 2 3 4 5 6 7 8
A window (object of class
positive number: the radius of erosion.
extra arguments to
Logical flag determining the fate of boundary pixels, if pixel approximation is used. See details.
Logical flag indicating whether to compute a polygonal
approximation to the erosion (
The morphological erosion of a set W by a distance r > 0 is the subset consisting of all points x in W such that the distance from x to the boundary of W is greater than or equal to r. In other words it is the result of trimming a margin of width r off the set W.
polygonal=TRUE then a polygonal approximation
to the erosion is computed.
polygonal=FALSE then a pixel approximation
to the erosion is computed from the distance map of
"\dots" are passed to
to control the pixel resolution.
The erosion consists of all pixels whose distance
from the boundary of
w is strictly greater than
strict=TRUE) or is greater than or equal to
w is a window, the default (when
is to compute a polygonal approximation if
w is a rectangle or polygonal window, and to compute a
pixel approximation if
w is a window of type
shrink.frame is false, the resulting window is given the
same outer, bounding rectangle as the original window
shrink.frame is true, the original bounding rectangle
is also eroded by the same distance
To simply compute the area of the eroded window,
r > 0, an object of class
"owin" representing the
eroded region (or
NULL if this region is empty).
r=0, the result is identical to
dilation for the opposite operation.
erosionAny for morphological erosion using any shape.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.