Last chance! 50% off unlimited learning
Sale ends in
perimeter(w)
"owin"
)
or data that can be converted to a window by as.owin
.w
. If w
is a rectangle or a polygonal window,
the perimeter is the sum of the lengths of the edges of w
.
If w
is a mask, it is first converted to a polygonal window
using as.polygonal
, then staircase edges are removed
using simplify.owin
, and the perimeter of the resulting
polygon is computed.area.owin
diameter.owin
,
owin.object
,
as.owin
perimeter(square(3))
data(letterR)
perimeter(letterR)
if(interactive()) print(perimeter(as.mask(letterR)))
Run the code above in your browser using DataLab