Learn R Programming

TreeLS (version 1.0)

tlsRotate: Rotate point cloud towards a horizontal plane

Description

Check for ground points and rotates the point cloud to align its ground surface to a horizontal plane (XY). This function is especially useful for point clouds not georreferenced or generated through mobile scanning, which might present a tilted global reference system. Since the coordinates are altered in this procedure, any geographical information is erased from the LAS' header after rotation.

Usage

tlsRotate(las)

Arguments

las

LAS object.

Value

LAS object.

Examples

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

### note the tilted ground
plot(tls)
rgl::axes3d(col='white')

### after rotation
tls = tlsRotate(tls)
plot(tls)
rgl::axes3d(col='white')

# }

Run the code above in your browser using DataLab