boundingcircle

0th

Percentile

Smallest Enclosing Circle

Find the smallest circle enclosing a spatial window or other object. Return its radius, or the location of its centre, or the circle itself.

Keywords
spatial, math
Usage

boundingcentre(x, …)

boundingcircle(x, …)

# S3 method for owin boundingradius(x, …)

# S3 method for owin boundingcentre(x, …)

# S3 method for owin boundingcircle(x, …)

# S3 method for ppp boundingradius(x, …)

# S3 method for ppp boundingcentre(x, …)

# S3 method for ppp boundingcircle(x, …)

Arguments
x

A window (object of class "owin"), or another spatial object.

Arguments passed to as.mask to determine the pixel resolution for the calculation.

Details

The boundingcircle of a spatial region $W$ is the smallest circle that contains $W$. The boundingradius is the radius of this circle, and the boundingcentre is the centre of the circle.

The functions boundingcircle, boundingcentre and boundingradius are generic. There are methods for objects of class "owin", "ppp" and "linnet".

Value

The result of boundingradius is a single numeric value.

The result of boundingcentre is a point pattern containing a single point.

The result of boundingcircle is a window representing the boundingcircle.

Aliases
• boundingcentre
• boundingcircle
• boundingcentre.owin
• boundingcircle.owin
• boundingcentre.ppp
• boundingcircle.ppp
Examples
# NOT RUN {

plot(grow.rectangle(Frame(letterR), 0.2), main="", type="n")