Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

overlap.owin

Compute Area of Overlap


Description

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

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.

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

A <- square(1)
  B <- shift(A, c(0.3, 0.2))
  overlap.owin(A, B)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.