landmarks_angle {pliman} | R Documentation |
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"))
Arguments
x |
An object computed with |
unit |
The unit of the angle. Defaults to radian (rad). Use |
Value
A matrix with the angles for each landmark combination.
Note
Borrowed from Claude (2008), pp. 50
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_angle(x)
}
[Package pliman version 2.1.0 Index]