36 #ifndef PCL_EXTRACT_LABELED_CLUSTERS_H_
37 #define PCL_EXTRACT_LABELED_CLUSTERS_H_
56 template <
typename Po
intT>
void
58 const PointCloud<PointT> &cloud,
const boost::shared_ptr<search::Search<PointT> > &tree,
59 float tolerance, std::vector<std::vector<PointIndices> > &labeled_clusters,
60 unsigned int min_pts_per_cluster = 1,
unsigned int max_pts_per_cluster = (std::numeric_limits<int>::max) (),
61 unsigned int max_label = (std::numeric_limits<int>::max));
70 template <
typename Po
intT>
90 cluster_tolerance_ (0),
91 min_pts_per_cluster_ (1),
92 max_pts_per_cluster_ (std::numeric_limits<int>::max ()),
93 max_label_ (std::numeric_limits<int>::max ())
150 extract (std::vector<std::vector<PointIndices> > &labeled_clusters);
154 using BasePCLBase::input_;
155 using BasePCLBase::indices_;
156 using BasePCLBase::initCompute;
157 using BasePCLBase::deinitCompute;
163 double cluster_tolerance_;
166 int min_pts_per_cluster_;
169 int max_pts_per_cluster_;
172 unsigned int max_label_;
175 virtual std::string getClassName ()
const {
return (
"LabeledEuclideanClusterExtraction"); }
189 #endif //#ifndef PCL_EXTRACT_LABELED_CLUSTERS_H_