@@ -52,12 +52,30 @@ namespace pcl
52
52
* \param[in] max_label
53
53
* \ingroup segmentation
54
54
*/
55
- template <typename PointT> void
55
+ template <typename PointT>
56
+ PCL_DEPRECATED (1 , 14 , " Use of max_label is deprecated" )
57
+ void
58
+ extractLabeledEuclideanClusters (
59
+ const PointCloud<PointT> &cloud, const typename search::Search<PointT>::Ptr &tree,
60
+ float tolerance, std::vector<std::vector<PointIndices> > &labeled_clusters,
61
+ unsigned int min_pts_per_cluster, unsigned int max_pts_per_cluster,
62
+ unsigned int max_label);
63
+
64
+ /* * \brief Decompose a region of space into clusters based on the Euclidean distance between points
65
+ * \param[in] cloud the point cloud message
66
+ * \param[in] tree the spatial locator (e.g., kd-tree) used for nearest neighbors searching
67
+ * \note the tree has to be created as a spatial locator on \a cloud
68
+ * \param[in] tolerance the spatial cluster tolerance as a measure in L2 Euclidean space
69
+ * \param[out] labeled_clusters the resultant clusters containing point indices (as a vector of PointIndices)
70
+ * \param[in] min_pts_per_cluster minimum number of points that a cluster may contain (default: 1)
71
+ * \param[in] max_pts_per_cluster maximum number of points that a cluster may contain (default: max int)
72
+ * \ingroup segmentation
73
+ */
74
+ template <typename PointT> void
56
75
extractLabeledEuclideanClusters (
57
76
const PointCloud<PointT> &cloud, const typename search::Search<PointT>::Ptr &tree,
58
77
float tolerance, std::vector<std::vector<PointIndices> > &labeled_clusters,
59
- unsigned int min_pts_per_cluster = 1 , unsigned int max_pts_per_cluster = std::numeric_limits<unsigned int >::max (),
60
- unsigned int max_label = std::numeric_limits<unsigned int >::max ());
78
+ unsigned int min_pts_per_cluster = 1 , unsigned int max_pts_per_cluster = std::numeric_limits<unsigned int >::max ());
61
79
62
80
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
63
81
// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -135,10 +153,12 @@ namespace pcl
135
153
/* * \brief Set the maximum number of labels in the cloud.
136
154
* \param[in] max_label the maximum
137
155
*/
156
+ PCL_DEPRECATED (1 , 14 , " Max label is being deprecated" )
138
157
inline void
139
158
setMaxLabels (unsigned int max_label) { max_label_ = max_label; }
140
159
141
160
/* * \brief Get the maximum number of labels */
161
+ PCL_DEPRECATED (1 , 14 , " Max label is being deprecated" )
142
162
inline unsigned int
143
163
getMaxLabels () const { return (max_label_); }
144
164
0 commit comments