Learn R Programming

TreeLS (version 2.0.2)

tlsNormalize: Normalize a TLS point cloud

Description

Fast normalization of TLS point clouds based on a Digital Terrain Model (DTM) of the ground points. If the input's ground points are not yet classified, the csf algorithm is applied internally.

Usage

tlsNormalize(las, min_res = 0.25, keep_ground = TRUE)

Arguments

las

LAS object.

min_res

numeric - minimum resolution of the DTM used for normalization, in point cloud units.

keep_ground

logical - if FALSE removes the ground points from the output.

Value

LAS object.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "pine_plot.laz", package="TreeLS")
tls = readTLS(file)
plot(tls)
rgl::axes3d(col='white')

tls = tlsNormalize(tls, 0.5, FALSE)
plot(tls)
rgl::axes3d(col='white')
# }

Run the code above in your browser using DataLab