pointset_outlier_removal

compas_cgal.reconstruction.pointset_outlier_removal(points, nnnbrs=10, radius=1.0)

Remove outliers from a point cloud using the point set outlier removal algorithm.

Parameters:
pointslist of compas.geometry.Point or numpy.ndarray

The points of the point cloud.

nnnbrsint, optional

The number of nearest neighbors to consider for each point.

radiusfloat, optional

The radius of the sphere to consider for each point as a multiplication factor of the average point spacing.

Returns:
numpy.ndarray

The points of the point cloud without outliers.