View source: R/voxelize_points.R
voxelize_points | R Documentation |
Reduce the number of points by voxelizing the point cloud. If the Intensity is part of the attributes
it is preserved and aggregated as mean(Intensity)
. Other attributes cannot be aggregated and
are lost.
voxelize_points(las, res)
las |
An object of class LAS or LAScatalog. |
res |
numeric. The resolution of the voxels. |
If the input is a LAS
object, returns a LAS
object. If the input is a
LAScatalog
, returns a LAScatalog
.
LASfile <- system.file("extdata", "Megaplot.laz", package="lidR")
las = readLAS(LASfile, select = "xyz")
las2 = voxelize_points(las, 5)
#plot(las2, voxel = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.