fieldMask: Removing the soil using vegetation index

Description Usage Arguments Details Value References Examples

View source: R/fieldMask.R

Description

Different vegetation indices can be used to remove the soil. For the list of indices please visit the FIELDimageR manual at link:

Usage

1
  fieldMask(mosaic,Red=1,Green=2,Blue=3,RedEdge=NULL,NIR=NULL,mask=NULL,index="HUE",cropValue=0,cropAbove=T, DSMmosaic=NULL, DSMcropAbove=T, DSMcropValue=0, plot=T)

Arguments

mosaic

object of class stack with at least 3 bands.

Red,Green,Blue,RedEdge,NIR

respective position of the band at the original image file.

index

vector with the vegetation indices to be calculated. For the list of indices please visit the FIELDimageR manual at link:

mask

if avaliable the soil will be removed following this mask and not the vegetation index, cropValue and cropAbove must be used.

cropValue

referent value of soil in the image.

cropAbove

if TRUE all values above the cropValue will be accounted to make the mask.

DSMmosaic, DSMcropAbove, DSMcropValue

DSM should be used if the file of height is provided.

plot

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

Details

The function returns a image with the original bands (layers) without the soil and mask with logical values of 0 and 1 for vegetation or soil.

Value

Image format stack without soil and mask with logical values of 0 and 1 for vegetation or soil.

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.