overlap.owin | R Documentation |
Computes the area of the overlap (intersection) of two windows.
overlap.owin(A, B)
A , B |
Windows (objects of class |
This function computes the area of the overlap between the two
windows A
and B
.
If one of the windows is a binary mask, then both windows are converted to masks on the same grid, and the area is computed by counting pixels. Otherwise, the area is computed analytically (using the discrete Stokes theorem).
A single numeric value.
and \rolf
intersect.owin
,
area.owin
,
setcov
.
A <- square(1)
B <- shift(A, c(0.3, 0.2))
overlap.owin(A, B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.