branch_angle_ratio_qsm: Branch angle ratio TreeQSM

View source: R/metrics_Terryn_2020.R

branch_angle_ratio_qsmR Documentation

Branch angle ratio TreeQSM

Description

Calculates the branch angle ratio from a TreeQSM.

Usage

branch_angle_ratio_qsm(branch)

Arguments

branch

Branch field of a TreeQSM that is returned by read_tree_qsm.

Details

The branch angle ratio is defined as "Ratio of the medians of the branching angles of the 1st order branches and 2nd order branches" (Terryn et al., 2020).

Value

The branch angle ratio. NaN when there are no branches.

References

Terryn, L., Calders, K., Disney, M., Origo, N., Malhi, Y., Newnham, G., ... & Verbeeck, H. (2020). Tree species classification using structural features derived from terrestrial laser scanning. ISPRS Journal of Photogrammetry and Remote Sensing, 168, 170-181.

Examples

## Not run: 
# Read tree qsm and calculate the branch angle ratio
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
br <- branch_angle_ratio_qsm(branch = qsm$branch)

## End(Not run)

lmterryn/ITSMe documentation built on Feb. 4, 2025, 2:21 a.m.