fieldInfo: Extract information from image using the fieldShape file as...

View source: R/fct_fieldInfo.R

fieldInfoR Documentation

Extract information from image using the fieldShape file as reference

Description

Function that use raster::extract() to extract information from the original image using fieldShape file as reference.

Usage

fieldInfo(
  mosaic,
  fieldShape,
  fun = "mean",
  plot = FALSE,
  buffer = NULL,
  n.core = NULL,
  projection = TRUE
)

Arguments

mosaic

object of class stack.

fieldShape

plot shape file, please use first the function fieldShape.

fun

to summarize the values (e.g. mean).

plot

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

buffer

negative values should be used to remove boundaries from neighbor plot (normally the unit is meters, please use values as 0.1 = 10 cm).

n.core

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

projection

if is FALSE projection will be ignored.

Details

fieldInfo

Value

A list with a data frame with values by plot and experimental field image with format stack.


OpenDroneMap/FIELDimageR documentation built on May 4, 2024, 4:24 a.m.