canopy: Percentage of canopy

Description Usage Arguments Details Value References Examples

View source: R/canopy.R

Description

Calculating the percentage of canopy in the entire mosaic or per plot using the fieldShape file

Usage

1
  canopy(mosaic, canopyValue=0, fieldShape=NULL, n.core=NULL, plot=T)

Arguments

mosaic

object mask of class stack from the function fieldMask().

canopyValue

referent value of canopy in the image.

fieldShape

evaluate the canopy percentage per plot using the fieldShape as reference. If fieldShape=NULL, the canopy percentage will be calculated directly for the entire original image.

n.core

number of cores to use for multicore processing (Parallel).

plot

if is TRUE the crop image and fieldShape will be plotted.

Details

The function returns a data frame with the percentage of canopy per plot, and the new fieldShape (format SpatialPolygonsDataFrame) with percentage of canopy per plot.

Value

Percentage of canopy per plot represented in DataFrame, and the new fieldShape format SpatialPolygonsDataFrame.

References

Matias et al. (2019) FIELDimageR: A R Package to Analyze Orthomosaic Images from Agricultural Field Trials. (submitted)

Examples

1
  ##see Vignette at https://github.com/filipematias23/FIELDimageR

angel30mpa/ampa documentation built on Feb. 22, 2020, 12:17 a.m.