coo_chull: Calculates the convex hull of a shape

Description Usage Arguments Value See Also Examples

View source: R/coo-shapedescriptors.R

Description

Returns the ids of points that define the convex hull of a shape. A simple wrapper around chull, mainly used in graphical functions.

Usage

1
coo_chull(coo)

Arguments

coo

a matrix of (x; y) coordinates.

Value

a matrix of ids defining the convex hull of the shape.

See Also

Other coo_ descriptors: coo_area, coo_boundingbox, coo_circularityharalick, coo_circularitynorm, coo_circularity, coo_convexity, coo_eccentricityboundingbox, coo_eccentricityeigen, coo_elongation, coo_length, coo_lw, coo_rectangularity, coo_rectilinearity, coo_solidity, coo_tangle, coo_theta3, coo_thetapts, coo_width

Examples

1
2
3
4
5
data(hearts)
h <- coo_sample(hearts[4], 32)
coo_plot(h)
ch <- coo_chull(h)
lines(ch, col='red', lty=2)

Momocs documentation built on Sept. 28, 2017, 9:04 a.m.