|
RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
|
Filters points from a point cloud based on a camera frustum. More...
Functions | |
| pcl::IndicesPtr RTABMAP_CORE_EXPORT | rtabmap::util3d::frustumFiltering (const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const pcl::IndicesPtr &indices, const Transform &cameraPose, float horizontalFOV, float verticalFOV, float nearClipPlaneDistance, float farClipPlaneDistance, bool negative=false) |
Performs frustum filtering on a point cloud of type pcl::PointXYZ and returns filtered indices. | |
| pcl::PointCloud< pcl::PointXYZ >::Ptr RTABMAP_CORE_EXPORT | rtabmap::util3d::frustumFiltering (const pcl::PointCloud< pcl::PointXYZ >::Ptr &cloud, const Transform &cameraPose, float horizontalFOV, float verticalFOV, float nearClipPlaneDistance, float farClipPlaneDistance, bool negative=false) |
Performs frustum filtering on a point cloud of type pcl::PointXYZ and returns a new point cloud of the filtered points. | |
| pcl::PointCloud< pcl::PointXYZRGB >::Ptr RTABMAP_CORE_EXPORT | rtabmap::util3d::frustumFiltering (const pcl::PointCloud< pcl::PointXYZRGB >::Ptr &cloud, const Transform &cameraPose, float horizontalFOV, float verticalFOV, float nearClipPlaneDistance, float farClipPlaneDistance, bool negative=false) |
Performs frustum filtering on a point cloud of type pcl::PointXYZRGB and returns a new point cloud of the filtered points. | |
Filters points from a point cloud based on a camera frustum.
This function uses PCL's FrustumCulling filter to include or exclude points from a 3D point cloud that lie within a specified camera frustum. The frustum is defined by vertical and horizontal field of view angles, near and far clipping planes, and the camera pose. It can optionally apply filtering on a subset of points specified by indices.
| cloud | A pointer to the input point cloud to be filtered. |
| indices | A pointer to the subset of indices in the point cloud to consider for filtering. Pass nullptr to apply the filter to the full cloud. |
| cameraPose | The transformation representing the camera pose in world coordinates. This defines the position and orientation of the frustum. |
| horizontalFOV | The horizontal field of view in degrees (e.g., computed as atan((image width/2)/fx) * 2). |
| verticalFOV | The vertical field of view in degrees (e.g., atan((image height/2)/fy) * 2). |
| nearClipPlaneDistance | The distance from the camera to the near clipping plane. |
| farClipPlaneDistance | The distance from the camera to the far clipping plane. |
| negative | If true, the filter will exclude points inside the frustum. If false, it will include only those inside. |
| Assertion | failure if:
|