View source: R/utils_landmarks.R
landmarks_angle | R Documentation |
Computes the angle from two interlandmark vectors using the difference of their arguments using complex vectors (Claude, 2008).
landmarks_angle(x, unit = c("rad", "deg"))
x |
An object computed with |
unit |
The unit of the angle. Defaults to radian (rad). Use |
A matrix with the angles for each landmark combination.
Borrowed from Claude (2008), pp. 50
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
if(isTRUE(interactive())){
library(pliman)
img <- image_pliman("potato_leaves.jpg")
x <- landmarks(img)
landmarks_angle(x)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.