Description Usage Arguments Value Examples
Applies a sampling algorithm to reduce a point cloud's density. Sampling methods are prefixed by smp
.
1 | tlsSample(las, method = smp.voxelize())
|
las |
|
method |
point sampling algorithm. Currently available: |
LAS
object.
1 2 3 4 5 6 7 8 9 10 11 | file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file)
nrow(tls@data)
### sample points systematically from a 3D voxel grid
vx = tlsSample(tls, smp.voxelize(0.05))
nrow(vx@data)
### sample half of the points randomly
rd = tlsSample(tls, smp.randomize(0.5))
nrow(rd@data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.