complement.owin {spatstat}R Documentation

Take Complement of a Window

Description

Take the set complement of a window, within its enclosing rectangle.

Usage

 complement.owin(w)

Arguments

w an object of class "owin" describing a window of observation for a point pattern.

Details

If w is a rectangular window this produces an error. Otherwise, it yields a window object (of class "owin", see owin.object) representing the set complement of w inside its enclosing rectangle. For polygonal windows this is achieved by reversing the sign of each boundary polygon, while for binary masks it is achieved by negating the pixel values.

Value

Another object of class "owin" representing the complement of the window, i.e. the inside of the window becomes the outside.

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf

See Also

owin, owin.object

Examples

   # polygonal
   data(demopat)
   w <- demopat$window
   outside <- complement.owin(w)
   # mask
   w <- as.mask(demopat$window)
   outside <- complement.owin(w)

[Package spatstat version 1.6-9 Index]