src.pcloud.point_cloud_filter

Classes

PointCloudFilter(conditions)

class src.pcloud.point_cloud_filter.PointCloudFilter(conditions)
Author:

Alberto M. Esmoris Pena

The base PointCloudFilter class represents a set of operations that can be seen as a data filter to be applied on the point cloud. Typically, filters are relationals that decide whether

Variables:

conditions (list of dict) – The conditions to be applied by the filter.

__init__(conditions)

Initialize a PointCloudFilter from a list of conditions.

Parameters:

conditions (dict) – The list of conditions. Each condition must be a dictionary specifying an operation on the point cloud.

filter(pcloud)

Apply the filter to the given point cloud.

Parameters:

pcloud (PointCloud) – The point cloud to be filtered.

Returns:

The filtered point cloud.

Return type:

PointCloud

apply_relational(pcloud, condition, relational)

Apply a relational to filter the point cloud with respect to a given condition.

Parameters:
  • pcloud (PointCloud) – The point cloud to be filtered.

  • condition (dict) – The condition to be applied as part of the filter.

  • relational (function) – The function that evaluates the relational.

Returns:

The filtered point cloud.

Return type:

PointCloud