centroid: Centroid of a Blob Contour

View source: R/dist_blob_utils.R

centroidR Documentation

Centroid of a Blob Contour

Description

Find the center of a blob, defined as the mean of the vertices of the blob.

Usage

centroid(cont)

Arguments

blob

A polygon, for example the result of blob.boundary() the smoother the result.

Value

The 2-dimensional blob centroid.


rogerswt/wadeTools documentation built on Feb. 16, 2023, 7:47 a.m.