lidR (version 1.6.0)

lasfiltersurfacepoints: Filter the surface points

Description

This routine creates a grid with a given resolution and filters the point cloud by selecting the highest point within each cell.

Usage

lasfiltersurfacepoints(las, res)

Arguments

las

A LAS object

res

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

Value

A LAS object

Details

This function is different from grid_canopy even if the overall concept is exactly the same. grid_canopy attributes to each cell the elevation of the highest points and the point cloud is rasterized. Here, there is no rasterization, the function takes a point cloud as input and a point cloud as output. Coordinates and attributes are preserved.

See Also

Other lasfilters: lasfilters, lasfilter

Examples

Run this code
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile)
subset = lasfiltersurfacepoints(las, 2)
plot(subset)
# }

Run the code above in your browser using DataCamp Workspace