Learn R Programming

TreeLS (version 1.0)

voxelize: Point sampling algorithm: systematic voxel grid

Description

This function is meant to be used inside tlsSample. It selects one random point per voxel at a given spatial resolution.

Usage

voxelize(spacing = 0.05)

Arguments

spacing

numeric - voxel side length.

Examples

Run this code
# NOT RUN {
file = system.file("extdata", "pine.laz", package="TreeLS")
tls = readTLS(file)
print(tls)

### thin point cloud - note the point count
tls = tlsSample(tls, voxelize(0.05))
print(tls)

# }

Run the code above in your browser using DataLab