knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of droneland is to calculate the area of land captured by a drone image, using the method outlined in this manuscript.
Why do we care? Because ecological abundance is modelled using observed animeeple / land area.
You can install the development version from GitHub:
# install.packages("devtools") devtools::install_github("softloud/droneland")
Suppose we have a drone image of 7952 x 5304 pixels taken from 200 metres with a camera angled at 25 degrees with a vertical field of view of 38 degrees and a horizontal field of view of 54 degrees. Then the area of land captured, in metres, is
library(droneland) drone_image_area( camera_angle = 25, vertical_fov = 38, horizontal_fov = 54, height = 200, pixel_row = 7952, pixel_col = 5304 ) # dimensions of trapezoid drone_image_area( camera_angle = 25, vertical_fov = 38, horizontal_fov = 54, height = 200, pixel_row = 7952, pixel_col = 5304, dim = TRUE ) %>% purrr::map(round)
Check my derivations, please and thank you :)
In the derivations there are diagrams to check what angles to input.
citation("droneland")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.