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
landmarks()
.- unit
The unit of the angle. Defaults to radian (rad). Use
unit = "deg"
to return the angles in degrees.
Examples
if(isTRUE(interactive())){
library(pliman)
img <- image_pliman("potato_leaves.jpg")
x <- landmarks(img)
landmarks_angle(x)
}