38#include <pcl/search/search.h>
39#include <pcl/pcl_base.h>
57template <
typename Po
intT>
63 std::vector<std::vector<PointIndices>>& labeled_clusters,
64 unsigned int min_pts_per_cluster = 1,
65 unsigned int max_pts_per_cluster = std::numeric_limits<unsigned int>::max());
74template <
typename Po
intT>
165 extract(std::vector<std::vector<PointIndices>>& labeled_clusters);
191 unsigned
int max_label_{std::numeric_limits<unsigned int>::max()};
197 return (
"LabeledEuclideanClusterExtraction");
211#ifdef PCL_NO_PRECOMPILE
212#include <pcl/segmentation/impl/extract_labeled_clusters.hpp>
PointCloudConstPtr input_
The input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
bool initCompute()
This method should get called before starting the actual computation.
bool deinitCompute()
This method should get called after finishing the actual computation.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
shared_ptr< pcl::search::Search< PointT > > Ptr
void extractLabeledEuclideanClusters(const PointCloud< PointT > &cloud, const typename search::Search< PointT >::Ptr &tree, float tolerance, std::vector< std::vector< PointIndices > > &labeled_clusters, unsigned int min_pts_per_cluster=1, unsigned int max_pts_per_cluster=std::numeric_limits< unsigned int >::max())
Decompose a region of space into clusters based on the Euclidean distance between points.
bool compareLabeledPointClusters(const pcl::PointIndices &a, const pcl::PointIndices &b)
Sort clusters method (for std::sort).
#define PCL_DEPRECATED(Major, Minor, Message)
macro for compatibility across compilers and help remove old deprecated items for the Major....
shared_ptr< ::pcl::PointIndices > Ptr
shared_ptr< const ::pcl::PointIndices > ConstPtr