overlap.owin

0th

Percentile

Compute Area of Overlap

Computes the area of the overlap (intersection) of two windows.

Keywords
spatial, math
Usage
overlap.owin(A, B)
Arguments
A,B
Windows (objects of class "owin").
Details

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).

Value

  • A single numeric value.

See Also

intersect.owin, area.owin, setcov.

Aliases
  • overlap.owin
Examples
A <- square(1)
  B <- shift(A, c(0.3, 0.2))
  overlap.owin(A, B)
Documentation reproduced from package spatstat, version 1.34-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.