Learn R Programming

TreeLS (version 1.0)

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 classified, the csf algorithm is applied internally.

Usage

tlsNormalize(las, res = 0.5, keepGround = TRUE)

Arguments

las

LAS object.

res

numeric - resolution of the DTM used for normalization.

keepGround

logical - if TRUE (default), returns a normalized point cloud with classified ground, otherwise removes the ground points.

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')

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

# }

Run the code above in your browser using DataLab