Perimeter Length of Window
Computes the perimeter length of a window
- A window (object of class
"owin") or data that can be converted to a window by
This function computes the perimeter (length of the boundary) of the
w is a rectangle or a polygonal window,
the perimeter is the sum of the lengths of the edges of
w is a mask, it is first converted to a polygonal window
as.polygonal, then staircase edges are removed
simplify.owin, and the perimeter of the resulting
polygon is computed.
- A numeric value giving the perimeter length of the window.
perimeter(square(3)) data(letterR) perimeter(letterR) if(interactive()) print(perimeter(as.mask(letterR)))