Point Cloud Library (PCL)
1.10.0
|
42 #include <pcl/filters/filter_indices.h>
43 #include <pcl/search/pcl_search.h>
70 template<
typename Po
intT>
105 search_radius_ = radius;
116 return (search_radius_);
127 min_pts_radius_ = min_pts;
138 return (min_pts_radius_);
178 double search_radius_;
211 search_radius_ (0.0), min_pts_radius_ (1)
213 filter_name_ =
"RadiusOutlierRemoval";
222 search_radius_ = radius;
229 return (search_radius_);
239 min_pts_radius_ = min_pts;
248 return (min_pts_radius_);
267 applyFilter (std::vector<int> &indices)
override;
271 #ifdef PCL_NO_PRECOMPILE
272 #include <pcl/filters/impl/radius_outlier_removal.hpp>
KdTreePtr searcher_
A pointer to the spatial search object.
This file defines compatibility wrappers for low level I/O functions.
void setMinNeighborsInRadius(int min_pts)
Set the number of neighbors that need to be present in order to be classified as an inlier.
shared_ptr< RadiusOutlierRemoval< PointT > > Ptr
typename PointCloud::ConstPtr PointCloudConstPtr
typename PointCloud::Ptr PointCloudPtr
RadiusOutlierRemoval(bool extract_removed_indices=false)
Constructor.
shared_ptr< ::pcl::PCLPointCloud2 > Ptr
void applyFilterIndices(std::vector< int > &indices)
Filtered results are indexed by an indices array.
double getMinNeighborsInRadius()
Get the minimum number of neighbors that a point needs to have in the given search radius to be consi...
int min_pts_radius_
The minimum number of neighbors that a point needs to have in the given search radius to be considere...
PCLPointCloud2::ConstPtr PCLPointCloud2ConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
A point structure representing Euclidean xyz coordinates, and the RGB color.
void setRadiusSearch(double radius)
Set the radius of the sphere that will determine which points are neighbors.
void applyFilter(PointCloud &output) override
Filtered results are stored in a separate point cloud.
int getMinNeighborsInRadius()
Get the number of neighbors that need to be present in order to be classified as an inlier.
PCLPointCloud2::Ptr PCLPointCloud2Ptr
void setRadiusSearch(double radius)
Set the sphere radius that is to be used for determining the k-nearest neighbors for filtering.
shared_ptr< const ::pcl::PCLPointCloud2 > ConstPtr
double search_radius_
The nearest neighbors search radius for each point.
double getRadiusSearch()
Get the sphere radius used for determining the k-nearest neighbors.
shared_ptr< const Filter< PointT > > ConstPtr
shared_ptr< pcl::search::Search< PointT > > Ptr
FilterIndices represents the base class for filters that are about binary point removal.
Filter represents the base filter class.
RadiusOutlierRemoval filters points in a cloud based on the number of neighbors they have.
void setMinNeighborsInRadius(int min_pts)
Set the minimum number of neighbors that a point needs to have in the given search radius in order to...
std::string filter_name_
The filter name.
shared_ptr< PointCloud< PointT > > Ptr
typename pcl::search::Search< PointT >::Ptr SearcherPtr
shared_ptr< const PointCloud< PointT > > ConstPtr
void applyFilter(std::vector< int > &indices) override
Filtered results are indexed by an indices array.
RadiusOutlierRemoval(bool extract_removed_indices=false)
Empty constructor.
double getRadiusSearch()
Get the radius of the sphere that will determine which points are neighbors.
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.