
Last chance! 50% off unlimited learning
Sale ends in
This function is made to be used in decimate_points. It implements an algorithm that
randomly removes points or pulses to reach the desired density over the whole area (see
area
).
random(density, use_pulse = FALSE)
numeric. The desired output density.
logical. Decimate by removing random pulses instead of random points (requires running retrieve_pulses first)
Other point cloud decimation algorithms:
homogenize()
,
maxima
,
random_per_voxel()
# NOT RUN {
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile, select = "xyz")
# Reach a pulse density of 1 on the overall dataset
thinned1 = decimate_points(las, random(1))
plot(grid_density(las))
plot(grid_density(thinned1))
# }
Run the code above in your browser using DataLab