dilation.owin(w, r, ..., polygonal=TRUE, tight=TRUE)
dilate.owin(w, r, ..., polygonal=TRUE, tight=TRUE)"owin".as.mask
controlling the pixel resolution, if the pixel approximation is
used.polygonal=TRUE) or
a pixel grid approximation (polygonal=FALSE).tight=TRUE), or should be the
dilation of the bounding frame of w (tight=F"owin" representing the
dilated window. The functions dilate.owin and dilation.owin are
identical, and compute the dilation of the window w.
If polygonal=TRUE and w is a rectangle or a polygonal
window, then a polygonal approximation to the dilation is computed.
Otherwise, the window w is first approximated by a binary pixel image,
and the arguments "..." are passed to as.mask
to determine the pixel resolution. There is a sensible default.
erode.owin for the opposite operation.
owin,
as.owinw <- owin(c(0,1),c(0,1))
v <- dilate.owin(w, 0.1)Run the code above in your browser using DataLab