View source: R/utils_landmarks.R
landmarks | R Documentation |
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.
landmarks(
img,
n = Inf,
viewer = get_pliman_viewer(),
scale = NULL,
calibrate = FALSE
)
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, |
A data.frame
with the x
and y
-coordinates from the landmarks.
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.