Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

pliman (version 2.1.0)

landmarks_angle: Angles between landmarks

Description

Computes the angle from two interlandmark vectors using the difference of their arguments using complex vectors (Claude, 2008).

Usage

landmarks_angle(x, unit = c("rad", "deg"))

Value

A matrix with the angles for each landmark combination.

Arguments

x

An object computed with landmarks().

unit

The unit of the angle. Defaults to radian (rad). Use unit = "deg" to return the angles in degrees.

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_angle(x)
}

Run the code above in your browser using DataLab