mosaic.container.DataContainer.downsample#

DataContainer.downsample(geometry, method='radius', **kwargs)[source]#

Downsample point cloud using specified method

Parameters:
geometrymosaic.geometry.Geometry

Cloud to decimate.

methodstr

Method to use. Options are: - ‘radius’ : Remove points that fall within radius of each other. - ‘number’ : Randomly subsample points to number.

**kwargs

Additional arguments passed to the chosen method.

Returns:
int

Index of newly added point cloud.