fieldObject: Evaluate object area, "x" distance, "y" distance, number,...

View source: R/fct_fieldObject.R

fieldObjectR Documentation

Evaluate object area, "x" distance, "y" distance, number, extent, etc.

Description

Calculating the object dimensions (e.g., area, "x" distance, "y" distance, number, extent, etc.) in the entire mosaic or per plot using the fieldShape file.

Usage

fieldObject(
  mosaic,
  fieldShape = NULL,
  minArea = 0.01,
  areaValue = 0,
  watershed = FALSE,
  dissolve = TRUE,
  n.rem = 1,
  na.rm = FALSE,
  plot = TRUE
)

Arguments

mosaic

object mask of class stack from the function fieldMask.

fieldShape

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

minArea

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

areaValue

referent value of object area in the image.

watershed

if TRUE the "watershed" algorithm will be used to differentiate objects that are touching each other.

dissolve

if TRUE, polygons with the same attribute value will be dissolved into multi-polygon regions. This option requires the rgeos package.

n.rem

number of objects that should be removed by decreasing size (n.rem=1 is the background).

na.rm

logical. Should missing values (including NaN) be removed?.

plot

if TRUE the crop image and fieldShape will be plotted.

Details

fieldObject

Value

A list with elements:

  • mosaic (cropped by plot)

  • Dimension (area, x.dist, y.dist)

  • numObjects (number of objects)

  • Objects (all objects polygon shape)

  • Polygons (all extent polygons shape)

  • single.obj (single object polygon shape)

  • obj.extent (each object extent)

  • x.position (coordinates of "x" length per object)

  • y.position (coordinates of "y" length per object).


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