Learn R Programming

CspStandSegmentation (version 0.1.2)

forest_inventory_simple: Function to perform a forest inventory based on a segmented las object (needs to contain TreeID) This version is a faster but more simplistic approach than forest_inventory() for the DBH estimates

Description

Function to perform a forest inventory based on a segmented las object (needs to contain TreeID) This version is a faster but more simplistic approach than forest_inventory() for the DBH estimates

Usage

forest_inventory_simple(
  las,
  slice_min = 1.2,
  slice_max = 1.4,
  max_dbh = 1,
  n_cores = max(c(1, parallel::detectCores()/2 - 1))
)

Value

a data.frame with the TreeID, X, Y, DBH, quality_flag, Height and ConvexHullArea

Arguments

las

lidR las object with the segmented trees

slice_min

the minimum height of a DBH slice

slice_max

the maximum height of a DBH slice

max_dbh

the maximum DBH allowed

n_cores

number of cores to use