View source: R/calc_animal_pos.R
calc_animal_pos | R Documentation |
Calculates the position of animal relative to a camera based on image pixel positions and site calibration models.
calc_animal_pos(
animal_pos,
calib_models,
dep_tag = "deploymentID",
sequence_id = "sequenceID",
x = "x",
y = "y",
image_width = "imageWidth",
image_height = "imageHeight"
)
animal_pos |
Data frame (tibble) of animal position digitization data.
It must contain (at least) the columns defined in args |
calib_models |
Named list of deployment calibration models or site calibration
models ( |
dep_tag |
Column in |
sequence_id |
Column in |
x |
Column in |
y |
Column in |
image_width |
Column in |
image_height |
Column in |
Original tibble data frame as passed via animal_pos
with
additional columns:
radius
: Radial distance from camera.
angle
: Angular distance from camera.
frame_count
: Indicator of the frame order within each sequence.
# Use default values
calc_animal_pos(animal_positions, dep_calib_models)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.