Description Usage Arguments Value Author(s) Examples
View source: R/single_tree_analysis.R
computes the 2d alpha shape, 2d convex hull a 3D set of points as well as ground diameter and diameter at breast height
To avoid collinearity a small random jitter is added to the points before alpha-shape computation.
1 2 3 4 5 6 7 8 9 | single_tree_analysis(
input_cloud = data.frame(x = runif(20), y = runif(20), z = runif(20)),
vox = FALSE,
voxel_size = 0.03,
alpha_value = 1,
plot = FALSE,
plot_hulls = FALSE,
overwrite_output = FALSE
)
|
input_cloud |
A file or data.frame containing a tree point cloud with x y z. If file, it assumes first three columns to be x y z without header. Futher columns are ignored. |
vox |
Should the input point cloud be reduced to voxel grid for faster computation. Default to TRUE. |
voxel_size |
Size (in meters) of the voxels when vox==TRUE. Default 0.03 |
alpha_value |
Alpha value. Default 1.0 |
plot |
Should the 2d alpha shape be plotted. Default to FALSE. |
plot_hulls |
Should the CPA and slice hull be plotted. Default to FALSE. |
overwrite_output |
Should outout files be overwritten?. Logical. Default FALSE. |
A .txt files containing: CPA, CH, Height, GD, DBH, etc.
Matthias Kunz, last updated: 26.11.2019
1 | get_3d_alpha_shape(data.frame(x=runif(20),y=runif(20), z=runif(20)), alpha=1.0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.