Skip to contents

For every point of the shape, returns the (centroid-points) distance.

Usage

coo_centdist(coo)

Arguments

coo

a matrix of (x; y) coordinates.

Value

a matrix of (x; y) coordinates.

Examples

b <- coo_sample(bot[1], 64)
d <- coo_centdist(b)
barplot(d, xlab="Points along the outline", ylab="Distance to the centroid (pixels)")