
Last chance! 50% off unlimited learning
Sale ends in
These functions are made to be used in decimate_points. They implement algorithms that creates a grid with a given resolution and filters the point cloud by selecting the highest/lowest point within each cell.
highest(res = 1)lowest(res = 1)
numeric. The resolution of the grid used to filter the point cloud
Other point cloud decimation algorithms:
homogenize()
,
random_per_voxel()
,
random()
Other point cloud decimation algorithms:
homogenize()
,
random_per_voxel()
,
random()
# 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)
# Select the lowest point within each cell of an overlayed grid
thinned = decimate_points(las, lowest(4))
#plot(thinned)
# }
Run the code above in your browser using DataLab