Extracts the trunk height from the treedata of a TreeQSM. For stems without and with trangulation it selects the TrunkLenght and TriaTrunkLength object from treedata respectively.
Arguments
- treedata
Treedata field of a TreeQSM that is returned by
read_tree_qsm
.
Examples
if (FALSE) {
# Read tree qsm and extract tree height
qsm <- read_tree_qsm(QSM_path = "path/to/qsm.mat")
trunk_height <- trunk_height_qsm(treedata = qsm$treedata)
}