Learn R Programming

pliman (version 2.1.0)

landmarks_dist: 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)

Value

A matrix with the distances for each landmark combination.

Arguments

x

An object computed with landmarks().

References

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

Examples

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

Run the code above in your browser using DataLab