fieldCount: Calculating number of objects per plot

View source: R/fct_fieldCount.R

fieldCountR Documentation

Calculating number of objects per plot

Description

The mask from function fieldMask is used to identify the number of objects per plot..

Usage

fieldCount(
  mosaic,
  fieldShape = NULL,
  watershed = TRUE,
  plot = FALSE,
  pch = "+",
  col = "red"
)

Arguments

mosaic

object mask of class stack from the function fieldMask.

fieldShape

plot shape file.

watershed

TRUE (defaut) or FALSE. Use or not watershed to identify objects. Otherwise, all touching objects will be considered as one polygon.

plot

if it is TRUE the original and segmented image will be plotted with identified objects.

pch

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

col

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

Details

fieldCount

Value

A list with two elements when fieldShape is provided:

  • fieldShape$plot_level is the new shapeFile with objects in the plot area, perimeter, count, and mean_width.

  • fieldShape$object_level is the new shapeFile of single objects area, perimeter, width, x and y position.


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