Skip to contents

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 (FALSE) { # interactive()
library(pliman)
img <- image_pliman("potato_leaves.jpg")
x <- landmarks(img)
landmarks_dist(x)
}