42 #include <pcl/pcl_base.h>
43 #include <pcl/correspondence.h>
44 #include <pcl/console/print.h>
53 template <
typename Po
intModelT,
typename Po
intSceneT>
118 inline std::vector<double>
129 cluster (std::vector<Correspondences> &clustered_corrs);
168 PCL_ERROR (
"[initCompute] Scene not set.\n");
174 PCL_ERROR (
"[initCompute] Input not set.\n");
180 PCL_ERROR (
"[initCompute] Model-Scene Correspondences not set.\n");
199 #include <pcl/recognition/impl/cg/correspondence_grouping.hpp>
Abstract base class for Correspondence Grouping algorithms.
CorrespondencesConstPtr model_scene_corrs_
The correspondences between points in the input and the scene datasets.
std::vector< double > getCharacteristicScales() const
Getter for the vector of characteristic scales associated to each cluster.
void cluster(std::vector< Correspondences > &clustered_corrs)
Clusters the input correspondences belonging to different model instances.
typename SceneCloud::Ptr SceneCloudPtr
virtual void setModelSceneCorrespondences(const CorrespondencesConstPtr &corrs)
Provide a pointer to the precomputed correspondences between points in the input dataset and points i...
SceneCloudConstPtr getSceneCloud() const
Getter for the scene dataset.
CorrespondenceGrouping()
Empty constructor.
virtual void setSceneCloud(const SceneCloudConstPtr &scene)
Provide a pointer to the scene dataset.
bool initCompute()
This method should get called before starting the actual computation.
~CorrespondenceGrouping() override
destructor.
bool deinitCompute()
This method should get called after finishing the actual computation.
CorrespondencesConstPtr getModelSceneCorrespondences() const
Getter for the precomputed correspondences between points in the input dataset and points in the scen...
SceneCloudConstPtr scene_
The scene cloud.
virtual void clusterCorrespondences(std::vector< Correspondences > &clustered_corrs)=0
The actual clustering method, should be implemented by each subclass.
std::vector< double > corr_group_scale_
characteristic scale associated to each correspondence subset; if the cg algorithm can not handle sca...
typename SceneCloud::ConstPtr SceneCloudConstPtr
PointCloudConstPtr input_
The input point cloud dataset.
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< const Correspondences > CorrespondencesConstPtr