opening(w, r, ...)
"opening"(w, r, ..., polygonal=NULL)
"opening"(w, r, ...)
"opening"(w, r, ...)
"owin"
or a line segment pattern (object of class "psp"
)
or a point pattern (object of class "ppp"
).
as.mask
controlling the pixel resolution, if a pixel approximation is used
polygonal=TRUE
) or
a pixel grid approximation (polygonal=FALSE
).
r > 0
, an object of class "owin"
representing the
opened region. If r=0
, the result is identical to w
.
W
.For a small radius $r$, the opening operation has the effect of smoothing out irregularities in the boundary of $W$. For larger radii, the opening operation removes promontories in the boundary. For very large radii, the opened set is empty.
closing
for the opposite operation. dilation
, erosion
for the basic
operations.
owin
,
as.owin
for information about windows.
v <- opening(letterR, 0.3)
plot(letterR, type="n", main="opening")
plot(v, add=TRUE, col="grey")
plot(letterR, add=TRUE)
Run the code above in your browser using DataLab