links_delaunay: Creates links (Delaunay triangulation) between landmarks

View source: R/coo-ldk-utilities.R

links_delaunayR Documentation

Creates links (Delaunay triangulation) between landmarks

Description

Creates links (Delaunay triangulation) between landmarks

Usage

links_delaunay(coo)

Arguments

coo

a matrix (or a list) of (x; y) coordinates

Details

uses delaunayn in the geometry package.

Value

a matrix that can be passed to ldk_links, etc. The columns are the row ids of the original shape.

See Also

Other ldk helpers: def_links(), ldk_check(), links_all()

Examples

w <- wings[1]
coo_plot(w, poly=FALSE)
links <- links_delaunay(w)
ldk_links(w, links)

vbonhomme/Momocs documentation built on Nov. 13, 2023, 8:54 p.m.