thin_point_cloud_xyz: Point cloud thinning in 1D, 2D or 3D

View source: R/thin_point_cloud_xyz_function.R

thin_point_cloud_xyzR Documentation

Point cloud thinning in 1D, 2D or 3D

Description

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).

Usage

thin_point_cloud_xyz(pc, res = 1, n = 4, dim = "xy")

Arguments

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,...

Value

Thinned point cloud in same format as input

Author(s)

Nikolai Knapp

Examples

in progress

niknap/slidaRtools documentation built on Oct. 16, 2024, 3:53 p.m.