38#include <pcl/search/search.h>
39#include <pcl/pcl_base.h>
59template <
typename Po
intT>
63 const typename
search::Search<PointT>::
Ptr& tree,
65 std::vector<std::vector<
PointIndices>>& labeled_clusters,
66 unsigned int min_pts_per_cluster,
67 unsigned int max_pts_per_cluster,
68 unsigned int max_label);
84template <typename PointT>
88 const typename
search::Search<PointT>::
Ptr& tree,
90 std::vector<std::vector<
PointIndices>>& labeled_clusters,
91 unsigned int min_pts_per_cluster = 1,
92 unsigned int max_pts_per_cluster = std::numeric_limits<
unsigned int>::max());
101template <typename PointT>
123 ,
max_label_(std::numeric_limits<int>::max()){};
215 extract(std::vector<std::vector<PointIndices>>& labeled_clusters);
219 using BasePCLBase::deinitCompute;
220 using BasePCLBase::indices_;
221 using BasePCLBase::initCompute;
222 using BasePCLBase::input_;
246 return (
"LabeledEuclideanClusterExtraction");
260#ifdef PCL_NO_PRECOMPILE
261#include <pcl/segmentation/impl/extract_labeled_clusters.hpp>
PCLBase()
Empty constructor.
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
bool compareLabeledPointClusters(const pcl::PointIndices &a, const pcl::PointIndices &b)
Sort clusters method (for std::sort).
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, unsigned int max_pts_per_cluster, unsigned int max_label)
Decompose a region of space into clusters based on the Euclidean distance between points.
#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