Learn R Programming

FIELDimageR (version 0.3.1)

fieldCount: 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,
  value = 0,
  minSize = 0.01,
  n.core = NULL,
  pch = 16,
  cex = 0.7,
  col = "red",
  na.rm = FALSE
)

Arguments

mosaic

object mask of class stack from the function fieldMask.

fieldShape

plot shape file.

value

referent value to vegetation pixels in the mask. If "HUE" was used on fieldMask the value=0.

minSize

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

n.core

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

pch

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

cex

character (or symbol) expansion: a numerical vector, please check help("points").

col

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

na.rm

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

Value

A list with five element

  • fieldCount is the number of objects per plot represented in DataFrame.

  • fieldShape is the new shapeFile with stand count.

  • mosaic is the Watershed layer.

  • objectSel is the objects area per plot.

  • objectReject is the objects position in the image.

Details

fieldCount