pchandler.filters.spherical_coordinate_filters
Spherical-coordinate-based filters.
Classes
Filter points by a field-of-view (FoV) angular region. |
|
Filter points by a minimum/maximum spherical-range threshold. |
|
Filter points by a polygon defined in spherical (horizontal × vertical) coordinates. |
- class pchandler.filters.spherical_coordinate_filters.FoVFilter
Bases:
PointCloudFilterFilter 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:
PointCloudFilterFilter points by a minimum/maximum spherical-range threshold.
- __init__(low=0.0, high=np.inf)
Filter points based on minimum and maximum range thresholds.
- 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:
PointCloudFilterFilter 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