gap_fraction: Calculates the gap fraction (ratio of open canopy) from a...

Description Usage Arguments Value See Also Examples

View source: R/LAI.R

Description

Calculates the gap fraction (ratio of open canopy) from a binary image

Usage

1
gap_fraction(binary_img)

Arguments

binary_img

A binarized raster object, where sky pixels are 0 and vegetation pixels are 1

Value

The gap fraction ( number of sky pixels / total number of pixels )

See Also

unimodal_threshold LAI_from_gf_at_57

Examples

1
2
3
4
5
6
library(raster)
gap_fraction(
 unimodal_threshold(
   raster(system.file("extdata", "IMG_0005.JPG", package = "LAI"), band = 3)
 )
)

cmartin/LAI documentation built on May 13, 2019, 8:23 p.m.