Learn R Programming

CspStandSegmentation (version 0.1.2)

find_base_coordinates_geom: Find stem base position using a geometric feature filtering and clustering approach

Description

Find stem base position using a geometric feature filtering and clustering approach

Usage

find_base_coordinates_geom(
  las,
  zmin = 0.5,
  zmax = 2,
  res = 0.5,
  min_verticality = 0.9,
  min_planarity = 0.5,
  min_cluster_size = NULL
)

Value

data.frame with X, Y, Z and TreeID for stem base positions

Arguments

las

an element of lidR::LAS class

zmin

lower search boundary

zmax

upper search boundary

res

cluster search radius

min_verticality

minimum verticality >0 & <1 for a point to be considered a stem point

min_planarity

minimum planarity >0 & <1 for a point to be considered a stem point

min_cluster_size

minimum number of points in the cluster to be considered a tree, if NULL median cluster size is chosen

Author

Julian Frey <julian.frey@wwd.uni-freiburg.de>

Examples

Run this code
# read example data
file = system.file("extdata", "beech.las", package="CspStandSegmentation")
tls = lidR::readTLSLAS(file)

# Find tree positions
map <- CspStandSegmentation::find_base_coordinates_geom(tls)

Run the code above in your browser using DataLab