A data.table of the target point with three columns of the *XYZ* coordinates.
region.diameter
A numeric vector of length 2 indicating the lower and higher region to subset the point cloud and get the diameter. If region.diameter = NULL, it use c(1.25, 1.35). NULL as default.
relocateZ
Logical, if TRUE it relocates the *Z* coordinates to a minimum coordinate of zero based on the current min(cloud[,3]). Useful if the base value (*Z*) of a tree point cloud is not topography corrected.
Value
A data.table with the tree height, crown area, and diameter
Details
The tree height is estimated based on the maximum value of *Z*, the
crown area is calculated applying a convex hull on the point cloud, while the
DBH is calculated extracting the area of the convex hull on the subset of points
between region.diameter, and then estimating the diameter of a circle.
For another estimation of DBH try circleRANSAC or for irregular
trucks try trunk_volume.