From c255bb45c32a04d7e6b215af78ee290ff79e7e5a Mon Sep 17 00:00:00 2001 From: Kaju Bubanja Date: Wed, 21 Aug 2019 13:38:48 +0200 Subject: [PATCH] Deleted unused params and added deprecation warning --- .../organized_multi_plane_segmentation.hpp | 2 -- .../organized_multi_plane_segmentation.h | 20 +++++++++++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/segmentation/include/pcl/segmentation/impl/organized_multi_plane_segmentation.hpp b/segmentation/include/pcl/segmentation/impl/organized_multi_plane_segmentation.hpp index b1d9084fac2..878f311c9df 100644 --- a/segmentation/include/pcl/segmentation/impl/organized_multi_plane_segmentation.hpp +++ b/segmentation/include/pcl/segmentation/impl/organized_multi_plane_segmentation.hpp @@ -312,8 +312,6 @@ pcl::OrganizedMultiPlaneSegmentation::segmentAndRefine template void pcl::OrganizedMultiPlaneSegmentation::refine (std::vector& model_coefficients, std::vector& inlier_indices, - std::vector >&, - std::vector >&, PointCloudLPtr& labels, std::vector& label_indices) { diff --git a/segmentation/include/pcl/segmentation/organized_multi_plane_segmentation.h b/segmentation/include/pcl/segmentation/organized_multi_plane_segmentation.h index 6a345102c46..202017da522 100644 --- a/segmentation/include/pcl/segmentation/organized_multi_plane_segmentation.h +++ b/segmentation/include/pcl/segmentation/organized_multi_plane_segmentation.h @@ -263,7 +263,19 @@ namespace pcl PointCloudLPtr& labels, std::vector& label_indices, std::vector& boundary_indices); - + + /** \brief Perform a refinement of an initial segmentation, by comparing points to adjacent regions detected by the initial segmentation. + * \param [in] model_coefficients The list of segmented model coefficients + * \param [in] inlier_indices The list of segmented inlier indices, corresponding to each model + * \param [in] labels The labels produced by the initial segmentation + * \param [in] label_indices The list of indices corresponding to each label + */ + void + refine (std::vector& model_coefficients, + std::vector& inlier_indices, + PointCloudLPtr& labels, + std::vector& label_indices); + /** \brief Perform a refinement of an initial segmentation, by comparing points to adjacent regions detected by the initial segmentation. * \param [in] model_coefficients The list of segmented model coefficients * \param [in] inlier_indices The list of segmented inlier indices, corresponding to each model @@ -272,13 +284,17 @@ namespace pcl * \param [in] labels The labels produced by the initial segmentation * \param [in] label_indices The list of indices corresponding to each label */ + [[deprecated("centroids and covariances parameters are not used; they are deprecated and will be removed in future releases")]] void refine (std::vector& model_coefficients, std::vector& inlier_indices, std::vector >& centroids, std::vector >& covariances, PointCloudLPtr& labels, - std::vector& label_indices); + std::vector& label_indices) + { + refine(model_coefficients, inlier_indices, labels, label_indices); + } protected: