pchandler.filters.spherical_coordinate_filters

Spherical-coordinate-based filters.

Classes

FoVFilter

Filter points by a field-of-view (FoV) angular region.

RangeFilter

Filter points by a minimum/maximum spherical-range threshold.

SphericalPolygonFilter

Filter points by a polygon defined in spherical (horizontal × vertical) coordinates.

class pchandler.filters.spherical_coordinate_filters.FoVFilter

Bases: PointCloudFilter

Filter points by a field-of-view (FoV) angular region.

__init__(fov)

Filter points based on a given field of view (FoV).

Parameters:

fov (FoV) – Field of view object defining the top, bottom, left, and right boundaries.

mask(pcd)

Create a boolean mask for a point cloud based on a given field of view (FoV).

Parameters:

pcd (PointCloudData)

Return type:

Vector_Bool_T

class pchandler.filters.spherical_coordinate_filters.RangeFilter

Bases: PointCloudFilter

Filter points by a minimum/maximum spherical-range threshold.

__init__(low=0.0, high=np.inf)

Filter points based on minimum and maximum range thresholds.

Parameters:
  • low (float, default=0.0) – Lower (inclusive) range threshold.

  • high (float, default=``np.inf``) – Upper (inclusive) range threshold.

mask(pcd)

Create a boolean mask for a point cloud based on given range limits.

Parameters:

pcd (PointCloudData)

Return type:

Vector_Bool_T

class pchandler.filters.spherical_coordinate_filters.SphericalPolygonFilter

Bases: PointCloudFilter

Filter points by a polygon defined in spherical (horizontal × vertical) coordinates.

__init__(polygon)

Filter points based on a polygon defined in spherical coordinates.

Parameters:

polygon (Polygon) – Polygon defining the filter region in (horizontal, vertical) spherical-angle coordinates.

mask(pcd)

Create a boolean mask for a point cloud based on a polygon defined in spherical coordinates.

Points inside the polygon are marked as True.

Parameters:

pcd (PointCloudData)

Return type:

Vector_Bool_T