Learn R Programming

lidR (version 3.1.1)

highest: Point Cloud Decimation Algorithm

Description

This function is made to be used in decimate_points. It implements an algorithm that creates a grid with a given resolution and filters the point cloud by selecting the highest point within each cell.

Usage

highest(res = 1)

Arguments

res

numeric. The resolution of the grid used to filter the point cloud

See Also

Other point cloud decimation algorithms: homogenize(), random()

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile, select = "xyz")

# Select the highest point within each cell of an overlayed grid
thinned = decimate_points(las, highest(4))
#plot(thinned)
# }

Run the code above in your browser using DataLab