standCount: Calculating stand account for each plot

Description Usage Arguments Details Value References Examples

View source: R/standCount.R

Description

The mask from function fieldMask() is used to identify the number of plants per plot.

Usage

1
  standCount(mosaic, fieldShape, value=0, minSize=0.01, n.core=NULL, pch=16, cex=0.7, col="red")

Arguments

mosaic

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

fieldShape

plot shape file, please use first the function fieldAttributes().

value

referent value to vegetation pixels in the mask. If "HUE" was used on fieldMask() the value=0.

minSize

used to set the minimum size percentage of plant canopy (to remove weeds and more).

n.core

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

pch

point symbol, please check help("points").

cex

character (or symbol) expansion: a numerical vector, please check help("points").

col

color code or name, please check help("points").

Details

The function returns a vector with the number of plants per plot, a new shapeFile and a new mosaic with Watershed layer.

Value

Number of plants per plot represented in DataFrame, new shapeFile with stand count, Watershed layer, plants canopy per plot, and plants position in the image.

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.