Last chance! 50% off unlimited learning
Sale ends in
simplify.owin(W, dmin)
"owin"
."owin"
)
of type "polygonal"
.W
by recursively deleting the shortest edge of W
until all remaining edges are longer than the specified
minimum length dmin
, or until there are only three edges left. The argument W
must be a window (object of class
"owin"
). It should be of type "polygonal"
.
If W
is a rectangle, it is returned without alteration.
The simplification algorithm is not yet implemented for
binary masks. If W
is a mask, an error is generated.
owin
data(letterR)
plot(letterR, col="red")
plot(simplify.owin(letterR, 0.3), col="blue", add=TRUE)
data(chorley)
W <- chorley$window
plot(W)
WS <- simplify.owin(W, 2)
plot(WS, add=TRUE, border="green")
points(vertices(WS))
Run the code above in your browser using DataLab