Dilate a Window
Perform morphological dilation of a window
dilation.owin(w, r, ...) dilate.owin(w, r, ...)
- A window (object of class
- positive number: the radius of dilation.
- extra arguments to
as.maskcontrolling the pixel resolution
The morphological dilation of a set $W$ by a distance $r > 0$ is the set consisting of all points lying at most $r$ units away from $W$. Effectively, dilation adds a margin of width $r$ onto the set $W$.
identical, and compute the dilation of the window
w is first approximated by a binary pixel image,
and the arguments
"..." are passed to
to determine the pixel resolution. There is a sensible default.
- Another object of class
"owin"representing the dilated window.
w <- owin(c(0,1),c(0,1)) v <- dilate.owin(w, 0.1)