indices: Building vegetation indices using Red, Green, Blue, Red Edge,...

Description Usage Arguments Details Value References Examples

View source: R/indices.R

Description

Different vegetation indices can be calculated using at least 3 bands. For the list of indices please visit the FIELDimageR manual at link:

Usage

1
  indices(mosaic,Red=1,Green=2,Blue=3,RedEdge=NULL,NIR=NULL,index=c("HUE"),myIndex=NULL,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:

myIndex

user can calculate a diferent index using the bands names, e.g. "(Green+Blue)/Red-NIR/RedEdge"

plot

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

Details

The function returns a image with the original bands (layers) and with the new indices layers.

Value

Image format stack.

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.