Point Cloud Library (PCL)
1.9.1
|
40 #ifndef PCL_RECOGNITION_CORRESPONDENCE_GROUPING_H_
41 #define PCL_RECOGNITION_CORRESPONDENCE_GROUPING_H_
43 #include <pcl/pcl_base.h>
44 #include <pcl/correspondence.h>
45 #include <pcl/console/print.h>
54 template <
typename Po
intModelT,
typename Po
intSceneT>
119 inline std::vector<double>
130 cluster (std::vector<Correspondences> &clustered_corrs);
169 PCL_ERROR (
"[initCompute] Scene not set.\n");
175 PCL_ERROR (
"[initCompute] Input not set.\n");
181 PCL_ERROR (
"[initCompute] Model-Scene Correspondences not set.\n");
200 #include <pcl/recognition/impl/cg/correspondence_grouping.hpp>
202 #endif // PCL_RECOGNITION_CORRESPONDENCE_GROUPING_H_
This file defines compatibility wrappers for low level I/O functions.
boost::shared_ptr< PointCloud< PointT > > Ptr
PointCloudConstPtr input_
The input point cloud dataset.
SceneCloudConstPtr getSceneCloud() const
Getter for the scene dataset.
virtual ~CorrespondenceGrouping()
destructor.
bool initCompute()
This method should get called before starting the actual computation.
std::vector< double > getCharacteristicScales() const
Getter for the vector of characteristic scales associated to each cluster.
virtual void setModelSceneCorrespondences(const CorrespondencesConstPtr &corrs)
Provide a pointer to the precomputed correspondences between points in the input dataset and points i...
virtual void setSceneCloud(const SceneCloudConstPtr &scene)
Provide a pointer to the scene dataset.
PointCloud represents the base class in PCL for storing collections of 3D points.
CorrespondenceGrouping()
Empty constructor.
virtual void clusterCorrespondences(std::vector< Correspondences > &clustered_corrs)=0
The actual clustering method, should be implemented by each subclass.
CorrespondencesConstPtr getModelSceneCorrespondences() const
Getter for the precomputed correspondences between points in the input dataset and points in the scen...
SceneCloud::Ptr SceneCloudPtr
SceneCloud::ConstPtr SceneCloudConstPtr
std::vector< double > corr_group_scale_
characteristic scale associated to each correspondence subset; if the cg algorithm can not handle sca...
bool deinitCompute()
This method should get called after finishing the actual computation.
SceneCloudConstPtr scene_
The scene cloud.
boost::shared_ptr< const Correspondences > CorrespondencesConstPtr
void cluster(std::vector< Correspondences > &clustered_corrs)
Clusters the input correspondences belonging to different model instances.
CorrespondencesConstPtr model_scene_corrs_
The correspondences between points in the input and the scene datasets.
Abstract base class for Correspondence Grouping algorithms.
boost::shared_ptr< const PointCloud< PointT > > ConstPtr
pcl::PointCloud< PointSceneT > SceneCloud