Point Cloud Library (PCL)  1.11.0
approx_nearest_pair_point_cloud_coherence.h
1 #pragma once
2 
3 #include <pcl/search/search.h>
4 #include <pcl/search/octree.h>
5 #include <pcl/tracking/nearest_pair_point_cloud_coherence.h>
6 namespace pcl
7 {
8  namespace tracking
9  {
10  /** \brief @b ApproxNearestPairPointCloudCoherence computes coherence between two pointclouds using the
11  approximate nearest point pairs.
12  * \author Ryohei Ueda
13  * \ingroup tracking
14  */
15  template <typename PointInT>
17  {
18  public:
21  //using NearestPairPointCloudCoherence<PointInT>::search_;
28 
29  /** \brief empty constructor */
32  {
33  coherence_name_ = "ApproxNearestPairPointCloudCoherence";
34  }
35 
36  protected:
37  /** \brief This method should get called before starting the actual computation. */
38  bool initCompute () override;
39 
40  /** \brief compute the nearest pairs and compute coherence using point_coherences_ */
41  void
42  computeCoherence (const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_j) override;
43 
45  };
46  }
47 }
48 
49 #ifdef PCL_NO_PRECOMPILE
50 #include <pcl/tracking/impl/approx_nearest_pair_point_cloud_coherence.hpp>
51 #endif
pcl::tracking::NearestPairPointCloudCoherence::PointCoherencePtr
typename PointCloudCoherence< PointInT >::PointCoherencePtr PointCoherencePtr
Definition: nearest_pair_point_cloud_coherence.h:24
pcl
Definition: convolution.h:46
pcl::search::Octree::Ptr
shared_ptr< pcl::search::Octree< PointT, LeafTWrap, BranchTWrap, OctreeT > > Ptr
Definition: octree.h:72
pcl::IndicesConstPtr
shared_ptr< const Indices > IndicesConstPtr
Definition: pcl_base.h:62
pcl::tracking::ApproxNearestPairPointCloudCoherence::ApproxNearestPairPointCloudCoherence
ApproxNearestPairPointCloudCoherence()
empty constructor
Definition: approx_nearest_pair_point_cloud_coherence.h:30
pcl::tracking::PointCloudCoherence::coherence_name_
std::string coherence_name_
The coherence name.
Definition: coherence.h:119
pcl::tracking::ApproxNearestPairPointCloudCoherence::initCompute
bool initCompute() override
This method should get called before starting the actual computation.
Definition: approx_nearest_pair_point_cloud_coherence.hpp:41
pcl::tracking::ApproxNearestPairPointCloudCoherence::computeCoherence
void computeCoherence(const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_j) override
compute the nearest pairs and compute coherence using point_coherences_
Definition: approx_nearest_pair_point_cloud_coherence.hpp:12
pcl::tracking::NearestPairPointCloudCoherence
NearestPairPointCloudCoherence computes coherence between two pointclouds using the nearest point pai...
Definition: nearest_pair_point_cloud_coherence.h:17
pcl::tracking::NearestPairPointCloudCoherence::PointCloudInConstPtr
typename PointCloudCoherence< PointInT >::PointCloudInConstPtr PointCloudInConstPtr
Definition: nearest_pair_point_cloud_coherence.h:25
pcl::tracking::ApproxNearestPairPointCloudCoherence::PointCoherencePtr
typename NearestPairPointCloudCoherence< PointInT >::PointCoherencePtr PointCoherencePtr
Definition: approx_nearest_pair_point_cloud_coherence.h:19
pcl::tracking::ApproxNearestPairPointCloudCoherence::PointCloudInConstPtr
typename NearestPairPointCloudCoherence< PointInT >::PointCloudInConstPtr PointCloudInConstPtr
Definition: approx_nearest_pair_point_cloud_coherence.h:20
pcl::tracking::ApproxNearestPairPointCloudCoherence::search_
pcl::search::Octree< PointInT >::Ptr search_
Definition: approx_nearest_pair_point_cloud_coherence.h:44
pcl::tracking::ApproxNearestPairPointCloudCoherence
ApproxNearestPairPointCloudCoherence computes coherence between two pointclouds using the approximate...
Definition: approx_nearest_pair_point_cloud_coherence.h:16