random

0th

Percentile

Point Cloud Decimation Algorithm

This function is made to be used in lasfilterdecimate. It implements an algorithm that randomly removes points or pulses to reach the desired density over the whole area (see area).

Usage
random(density, use_pulse = FALSE)
Arguments
density

numeric. The desired output density.

use_pulse

logical. Decimate by removing random pulses instead of random points (requires running laspulse first)

See Also

Other point cloud decimation algorithms: highest, homogenize

Aliases
  • random
Examples
# 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 = lasfilterdecimate(las, random(1))
plot(grid_density(las))
plot(grid_density(thinned1))
# }
Documentation reproduced from package lidR, version 2.0.0, License: GPL-3

Community examples

Looks like there are no examples yet.