Learn R Programming

CspStandSegmentation (version 0.1.2)

find_base_coordinates_raster: Find stem base position using a density raster approach

Description

Find stem base position using a density raster approach

Usage

find_base_coordinates_raster(
  las,
  res = 0.1,
  zmin = 0.5,
  zmax = 2,
  q = 0.975,
  eps = 0.2
)

Value

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

Arguments

las

an element of lidR::LAS class

res

raster resolution

zmin

lower search boundary

zmax

upper search boundary

q

quantile of raster density to assign a tree region

eps

search radius to merge base points

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_raster(tls)

Run the code above in your browser using DataLab