landmarks_dist: Distances between landmarks

View source: R/utils_landmarks.R

landmarks_distR Documentation

Distances between landmarks

Description

Computes the distance between two landmarks as the square root of the sum of the squared differences between each coordinate (Claude, 2008).

Usage

landmarks_dist(x)

Arguments

x

An object computed with landmarks().

Value

A matrix with the distances for each landmark combination.

Note

Borrowed from Claude (2008), pp. 49

References

Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.

Examples

if(isTRUE(interactive())){
library(pliman)
img <- image_pliman("potato_leaves.jpg")
x <- landmarks(img)
landmarks_dist(x)
}


pliman documentation built on Oct. 15, 2023, 1:06 a.m.