TreeLS (version 2.0.2)

treeMap: Map tree occurrences from TLS data

Description

Estimates tree occurrence regions from a normalized point cloud. Tree mapping methods are prefixed by map.

Usage

treeMap(las, method = map.hough(), merge = 0.2, positions_only = FALSE)

Arguments

las

LAS object.

method

tree mapping algorithm. Currently available: map.hough, map.eigen.knn, map.eigen.voxel and map.pick.

merge

numeric - parameter passed down to treeMap.merge (if merge > 0).

positions_only

logical - if TRUE returns only a 2D tree map as a data.table.

Value

signed LAS or data.table.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "pine_plot.laz", package="TreeLS")
tls = readTLS(file) %>%
  tlsNormalize %>%
  tlsSample

x = plot(tls)

map = treeMap(tls, map.hough(h_step = 1, max_h = 4))
add_treeMap(x, map, color='red')

xymap = treeMap.positions(map)
# }

Run the code above in your browser using DataLab