
Computes the areas of successive morphological erosions of a window.
eroded.areas(w, r, subset=NULL)
A window.
Numeric vector of radii at which erosions will be performed.
Optional window inside which the areas should be computed.
Numeric vector, of the same length as r
,
giving the areas of the successive erosions.
This function computes the areas of the erosions of the window
w
by each of the radii r[i]
.
The morphological erosion of a set
The argument r
should be a vector of positive numbers.
The argument w
should be a window (an object of class
"owin"
, see owin.object
for details)
or can be given in any format acceptable to as.owin()
.
Unless w
is a rectangle, the computation is performed
using a pixel raster approximation.
To compute the eroded window itself, use erosion
.
# NOT RUN {
w <- owin(c(0,1),c(0,1))
a <- eroded.areas(w, seq(0.01,0.49,by=0.01))
# }
Run the code above in your browser using DataLab