bounding.box

0th

Percentile

Bounding Box of a Window

Find the smallest rectangle containing a given window.

Keywords
spatial
Usage
bounding.box(w)
Arguments
w
A window (object of class "owin").
Details

This function finds the smallest rectangle (with sides parallel to the coordinate axes) containing the window represented by w.

Use the function as.rectangle to extract the bounding window frame, which will be a larger rectangle.

Value

  • A window (object of class "owin") of type "rectangle" representing a rectangle.

See Also

owin, as.owin, as.rectangle

Aliases
  • bounding.box
Examples
library(spatstat)
  w <- owin(c(0,10),c(0,10), poly=list(x=c(1,2,3,2,1), y=c(2,3,4,6,7)))
  r <- bounding.box(w)
  # returns rectangle [1,3] x [2,7]
Documentation reproduced from package spatstat, version 1.2-1, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.