trunk_volume | R Documentation |
Estimates the tree trunk volume of a point cloud using the ashape3d
package.
trunk_volume(cloud, max.height = NULL, alpha = 0.2, plot = TRUE, ...)
cloud |
A |
max.height |
A |
alpha |
A |
plot |
Logical. If |
... |
General arguments passed to |
This is an adaptation of the code develop by Lafarge & Pateiro-Lopez (2017) based on Edelsbrunner & Mucke (1994) for the quick extraction of the tree trunk volume. Therefore, if you use this code we kindly suggest to cite these documents in your research.
A numeric
vector with the estimated trunk volume.
J. Antonio Guzmán Q.
Lafarge, T., Pateiro-Lopez, B. (2017). Implementation of the 3D Alpha-Shape for the Reconstruction of 3D Sets from a Point Cloud. Available at https://CRAN.R-project.org/package=alphashape3d.
Edelsbrunner, H., Mucke, E. P. (1994). Three-Dimensional Alpha Shapes. ACM Transactions on Graphics, 13(1), pp.43-72.
tree_metrics
, circleRANSAC
data("pc_tree") #Estimates the trunk volume of a height lower than 1.75. trunk_volume(pc_tree, max.height = 1.75)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.