This package calculates leaf area index (LAI) from digital images.
The LAI value is computed from the gap fraction of a binarized vegetation image classified with the histogram-based unimdal threshold method.
library(devtools)
devtools::install_github("cmartin/LAI")
library(raster)
test_image <- system.file("extdata", "IMG_7595.JPG", package = "LAI")
# See the image
plotRGB(
brick(test_image),
asp = 1
)
# Calculate LAI
LAI_from_gf_at_57(test_image)
[1] 2.45923
Please report any bugs to the GitHub issue tracker and write any questions to [email protected]
If this code is useful to you, please cite as :
Charles A. Martin (2015). LAI: Calculate indirect Leaf Area Index (LAI) from images. R package version 0.0.0.9004. https://github.com/cmartin/LAI. DOI:10.5281/zenodo.34690