View source: R/thin_point_cloud_xyz_function.R
thin_point_cloud_xyz | R Documentation |
Function that thins a point cloud to a desired homogenous point density by keeping a random subset of n points in each spatial unit and discarding all other points. Spatial units are defined by their dimensions, i.e. 3D voxels (xyz), 2D cells (most commonly in xy plane), or can even be just along one dimension (e.g. slices in z direction).
thin_point_cloud_xyz(pc, res = 1, n = 4, dim = "xy")
pc |
Point cloud in data.table, data.frame or LAS format (important: column names need to be X, Y and Z) |
res |
Side length of a spatial unit (equal in all dimensions) |
n |
Number of points to keep in each cell |
dim |
Axes that define the thinning units, e.g. "xyz" for 3D voxels, "xy" for 2D grid cells in the horizontal plane,... |
Thinned point cloud in same format as input
Nikolai Knapp
in progress
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.