R package to calculate leaf area index (LAI) from vegetation images
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
README_files/figure-html
inst
man
tests
.Rbuildignore
.gitignore
.travis.yml
DESCRIPTION
LAI.Rproj
LAI.from.cover.R
LICENSE
NAMESPACE
README.Rmd
README.md

README.md

LAI package for R

DOI

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.

To install :

library(devtools)
devtools::install_github("cmartin/LAI")

To try the code with one of the example images :

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

Problems :

Please report any bugs to the GitHub issue tracker and write any questions to charles.martin1@uqtr.ca

Citation

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