plot_av_pcs | R Documentation |
alpha_volume_pc
functionCalculates the (crown) volume and saves the figures acquired when running
alpha_volume_pc
on multiple tree point clouds in a folder.
plot_av_pcs(
PCs_path,
extension = ".txt",
OUT_path = "./",
alpha = 1,
crown = FALSE,
thresholdbranch = 1.5,
minheight = 1,
buttress = FALSE,
thresholdR2 = 0.001,
slice_thickness = 0.06,
thresholdbuttress = 0.001,
maxbuttressheight = 7,
concavity = 4,
dtm = NA,
r = 5,
plotcolor = "#fac87f"
)
PCs_path |
A character with the path to the folder that contains the tree point clouds. |
extension |
A character refering to the file extension of the point cloud files (default=".txt"). Can be ".txt", ".ply" or ".las". |
OUT_path |
A character with the path to the folder where the figures should be saved (default = current folder). |
alpha |
Numeric value (default=1) alpha for the computation of the 3D
alpha-shape of the tree crown based on |
crown |
Logical (default=FALSE), indicates if the volume is calculated based on the full point clouds (crown = FALSE) or only on the crown point clouds (crown = TRUE). |
thresholdbranch |
Numeric value (default=1.5) from
|
minheight |
Numeric value (default=1) from
|
buttress |
Logical (default=FALSE), indicates if the trees have buttresses (higher than breast height). Only relevant when crown == TRUE. |
thresholdR2 |
Numeric value (default=0.001). Parameter of the
|
slice_thickness |
Numeric value (default = 0.06). Parameter of the
|
thresholdbuttress |
Numeric value (default=0.001). Parameter of the
|
maxbuttressheight |
Numeric value (default=7). Parameter of the
|
concavity |
Numeric value (default=4) concavity for the computation of
the functional diameter using a concave hull based on
|
dtm |
The digital terrain model (default = NA), parameter of
|
r |
Numeric value (default=5) r, parameter of
|
plotcolor |
color for plotting 3D shape. Only relevant when plot = TRUE. |
Uses read_tree_pc
to read the point clouds and
alpha_volume_pc
with parameter plot = TRUE to calculate the
volume and plot the 3D the alpha-shape fitting. Choose crown = TRUE, if you
want to calculate and plot the crown volume. In this case a crown
classification is done using classify_crown_pc
and the crown
points are used as an input to alpha_volume_pc
. For buttressed
trees, first optimise the thresholdbuttress, maxbuttressheight,
thresholdbranch and minheight parameter values using
plot_dab_fit_pcs
and
plot_crown_classification_pcs
and use those optimised values in
this function.
a numeric containing the volume values for each tree point cloud. Figures are saved in the output folder.
## Not run:
# Calculate the volume with default settings and save alpha shape figures
vs <- plot_av_pcs(
PCs_path = "path/to/folder/PCs/", extension = ".txt",
OUT_path = "path/to/figure/folder/"
)
# Calculate the volume with non-default settings and save alpha shape figures
vs <- plot_av_pcs(
PCs_path = "path/to/folder/PCs/", extension = ".txt",
OUT_path = "path/to/figure/folder/", alpha = 2
)
# Calculate crown volume and save alpha shape figures
cvs <- plot_av_pcs(
PCs_path = "path/to/folder/PCs/", extension = ".txt",
OUT_path = "path/to/figure/folder/", alpha = 2,
crown = TRUE, minheight = 4, buttress = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.