src.clustering.fps_decorated_clusterer

Classes

FPSDecoratedClusterer(**kwargs)

class src.clustering.fps_decorated_clusterer.FPSDecoratedClusterer(**kwargs)
Author:

Alberto M. Esmoris Pena

Decorator for clusterers that makes the clustering process on an FPS-based representation of the point cloud.

The FPS Decorated Clusterer (FPSDecoratedClusterer) constructs a representation of the point cloud, then it runs the clustering process on this representation and, finally, it propagates the clusters back to the original point cloud.

See FPSDecoratorTransformer and SamplingDecoratedClusterer.

Variables:
  • decorated_clusterer_spec (dict) – See SamplingDecoratedClusterer.

  • fps_decorator_spec (dict) – The specification of the FPS transformation defining the decorator.

  • fps_decorator (FPSDecoratorTransformer) – The FPS decorator to be applied on input point clouds.

static extract_clustering_args(spec)

Extract the arguments to initialize/instantiate a FPSDecoratedClusterer from a key-word specification.

Parameters:

spec – The key-word specification containing the arguments.

Returns:

The arguments to initialize/instantiate a FPSDecoratedClusterer.

Return type:

dict

__init__(**kwargs)

Initialization for any instance of type FPSDecoratedClusterer.

transform_pcloud(pcloud)

Transform the given input point cloud to its FPS representation.

Parameters:

pcloud (PointCloud) – The input point cloud to be transformed.

Returns:

The FPS representation of the input point cloud.

Return type:

PointCloud

propagate(fps_pcloud, pcloud)

Propagate the cluster labels from the FPS version of the point cloud back to the original one.

See SamplingDecoratedClusterer._propagate().