crown_metrics: Crown metrics.

Description Usage Arguments Value Author(s) Examples

View source: R/crown_metrics.R

Description

Computation of tree crown metrics.
Currrently implemented: height, cbh, cpa cr_length, cr_length_to_heigh, cr_sinuosity, cr_compactnes, cr_density, cr_gini, cr_volume, cr_area cr_displacement

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
crown_metrics(
  input_cloud = "*.xyz",
  slice_thickness = 0.3,
  cbh = 0,
  vox = TRUE,
  voxel_size = 0.03,
  use_concave_hull = FALSE,
  alpha_value = 1,
  plot_hulls = FALSE,
  pos_x = NA,
  pos_y = NA
)

Arguments

input_cloud

A 3D point cloud file, e.g. "tree1.xyz". Assumes first three columns to be x y z without header. Futher columns are ignored.

slice_thickness

Thickness of vertical slices in meter. Default 0.3

cbh

Crown base height in meter. Default 0.0

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

use_concave_hull

Should slices be modelled as concave hulls instead of convex hull. Default to FALSE.

alpha_value

Alpha value when use_convace_hull==TRUE. Default 1.0

plot_hulls

Should the CPA and slice hull be plotted. Default to FALSE.

pos_x

X coordinate of tree position. Default NA

pos_y

Y coordinate of tree position. Default NA

Value

A data.frame with tree parameters

Author(s)

Matthias Kunz, last updated: 27.04.2019

Examples

1
2
crown_metrics("tree1.xyz", 0.25)
crown_metrics("tree1.xyz", 0.3, CBHfromQSM("tree1_qsm.txt"), 0.025)

spatial-mk/tre3d documentation built on April 1, 2020, 5:26 p.m.