Reduces the point cloud density
LAS file of a 3D point cloud.
character string. Defines the method to use for downsampling. Can be "space" or "random". See details. Default = "space".
numeric. The intensity of the filter that depends on the method. See details.
method = "space"
a single point is conserved within a voxel of
method = "random"
randomly select a user defined proportion of the point cloud.
filter is the proportion of points to keep in the point cloud.
The downsampled data.
1 2 3 4 5 6 7 8 9
#- import the tree_line_plot dataset file <- system.file("extdata", "tree_line_plot.laz", package="viewshed3d") tls <- lidR::readLAS(file,select="xyz") #- reduce the point cloud density: keep one point in a voxel of 4cm. sub = viewshed3d::downsample_scene(tls,filter=0.04) #- plot the downsampled point cloud lidR::plot(sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.