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
forest_inventory_simple(
las,
slice_min = 1.2,
slice_max = 1.4,
max_dbh = 1,
n_cores = max(c(1, parallel::detectCores()/2 - 1))
)a data.frame with the TreeID, X, Y, DBH, quality_flag, Height and ConvexHullArea
lidR las object with the segmented trees
the minimum height of a DBH slice
the maximum height of a DBH slice
the maximum DBH allowed
number of cores to use