mosaic.operations.downsample#

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

Reduces point density by removing points based on spatial or random criteria.

Parameters:
geometrymosaic.geometry.Geometry

Input data.

methodstr, optional

Method to use. Options are: - ‘radius’ : Remove points that fall within radius of each other using voxel downsampling - ‘core’ : Replace points that fall within radius of each other by theor centroid. - ‘number’ : Randomly subsample points to target number Default is ‘radius’.

**kwargs

Additional arguments passed to the chosen method: - For ‘radius’: voxel_size parameter for open3d.voxel_down_sample - For ‘number’: size parameter specifying target number of points

Returns:
mosaic.geometry.Geometry

Downsampled geometry.