tree_metrics: Tree Metrics

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/tree_metrics.R

Description

Estimate the tree height, crown area, and the diameter at breast height of a tree point cloud

Usage

1
tree_metrics(cloud, region.diameter = NULL, relocateZ = TRUE)

Arguments

cloud

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.

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.

Value

A data.table with the tree height, crown area, and diameter

Author(s)

J. Antonio Guzman Q. and Ronny Hernandez

See Also

circleRANSAC, trunk_volume

Examples

1
2

Antguz/rTLS documentation built on Dec. 14, 2021, 9:49 a.m.