landmarks {pliman} | R Documentation |
Create image landmarks
Description
An interactive section where the user will be able to click on the image to
select landmarks manually is open. With each mouse click, a point is drawn
and an upward counter is shown in the console. After n
counts or after the
user press Esc, the interactive process is interrupted and a data.frame
with the x
and y
coordinates for the landmarks is returned.
Usage
landmarks(
img,
n = Inf,
viewer = get_pliman_viewer(),
scale = NULL,
calibrate = FALSE
)
Arguments
img |
An |
n |
The number of landmarks to produce. Defaults to |
viewer |
The viewer option. If not provided, the value is retrieved
using |
scale |
A known scale of the coordinate values. If |
calibrate |
A logical argument indicating whether a calibration step
must be performed before picking up the landmarks. If so, |
Value
A data.frame
with the x
and y
-coordinates from the landmarks.
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)
}