fillholes.owin | R Documentation |
Given a window, this function removes any small holes in the window.
fillholes.owin(W, amin)
W |
Window (object of class |
amin |
Numeric value. The smallest permissible area of a hole. |
This function simplifies a window W
by removing any holes with area less than amin
.
The argument W
must be a window (object of class
"owin"
).
Another window (object of class "owin"
)
of the same type as W
.
.
simplify.owin
,
owin
## make object with small hole
A <- meningitis$kreise
W <- setminus.owin(Window(A), tiles(A)[[102]])
amin <- 500
opa <- par(mfrow=c(1,2))
plot(W)
plot(fillholes.owin(W, amin))
M <- as.mask(W)
plot(M)
plot(fillholes.owin(M, amin))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.