View source: R/reduce_point_density.R
reduce_point_density | R Documentation |
Reduce the point density by keeping the point the closest to the center of a voxel of given resolution
reduce_point_density(las, res, keep_points = FALSE)
las |
a LAS class object. |
res |
numeric. The voxel resolution. |
keep_points |
logical. Allow to keep all the points in the point cloud
and label the reduced density points as |
the LAS file with lower reduced density.
file = system.file("extdata", "urban.las", package="lidUrb")
las = lidR::readLAS(file)
# reduce point density with large voxels
las = lidUrb::reduce_point_density(las,0.2)
# plot
lidR::plot(las)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.