Learn R Programming

TreeLS (version 2.0.2)

stemPoints: Stem points classification

Description

Classify stem points of all trees in a normalized point cloud. Stem denoising methods are prefixed by stm.

Usage

stemPoints(las, method = stm.hough())

Arguments

las

LAS object.

method

stem denoising algorithm. Currently available: stm.hough, stm.eigen.knn and stm.eigen.voxel.

Value

LAS object.

Examples

Run this code
# NOT RUN {
### single tree
file = system.file("extdata", "spruce.laz", package="TreeLS")
tls = readTLS(file) %>%
  tlsNormalize %>%
  stemPoints(stm.hough(h_base = c(.5,2)))
plot(tls, color='Stem')

### entire forest plot
file = system.file("extdata", "pine_plot.laz", package="TreeLS")
tls = readTLS(file) %>%
  tlsNormalize %>%
  tlsSample

map = treeMap(tls, map.hough())
tls = treePoints(tls, map, trp.crop(circle=FALSE))
tls = stemPoints(tls, stm.hough(pixel_size = 0.03))
tlsPlot(tls)
# }

Run the code above in your browser using DataLab