Point Cloud Library (PCL)
1.15.1
Toggle main menu visibility
Loading...
Searching...
No Matches
pcl
tracking
approx_nearest_pair_point_cloud_coherence.h
1
#pragma once
2
3
#include <pcl/search/octree.h>
4
#include <pcl/tracking/nearest_pair_point_cloud_coherence.h>
5
6
namespace
pcl
{
7
namespace
tracking
{
8
/** \brief @b ApproxNearestPairPointCloudCoherence computes coherence between
9
* two pointclouds using the approximate nearest point pairs.
10
* \author Ryohei Ueda
11
* \ingroup tracking
12
*/
13
template
<
typename
Po
int
InT>
14
class
ApproxNearestPairPointCloudCoherence
15
:
public
NearestPairPointCloudCoherence
<PointInT> {
16
public
:
17
using
PointCoherencePtr
=
18
typename
NearestPairPointCloudCoherence<PointInT>::PointCoherencePtr
;
19
using
PointCloudInConstPtr
=
20
typename
NearestPairPointCloudCoherence<PointInT>::PointCloudInConstPtr
;
21
// using NearestPairPointCloudCoherence<PointInT>::search_;
22
using
NearestPairPointCloudCoherence
<PointInT>
::maximum_distance_
;
23
using
NearestPairPointCloudCoherence
<PointInT>
::target_input_
;
24
using
NearestPairPointCloudCoherence
<PointInT>
::point_coherences_
;
25
using
NearestPairPointCloudCoherence
<PointInT>
::coherence_name_
;
26
using
NearestPairPointCloudCoherence
<PointInT>
::new_target_
;
27
using
NearestPairPointCloudCoherence
<PointInT>
::getClassName
;
28
29
/** \brief empty constructor */
30
ApproxNearestPairPointCloudCoherence
()
31
:
NearestPairPointCloudCoherence
<PointInT>(),
search_
()
32
{
33
coherence_name_
=
"ApproxNearestPairPointCloudCoherence"
;
34
}
35
36
protected
:
37
/** \brief This method should get called before starting the actual
38
* computation.
39
*/
40
bool
41
initCompute
()
override
;
42
43
/** \brief compute the nearest pairs and compute coherence using
44
* point_coherences_
45
*/
46
void
47
computeCoherence
(
const
PointCloudInConstPtr
& cloud,
48
const
IndicesConstPtr
& indices,
49
float
& w_j)
override
;
50
51
typename
pcl::search::Octree<PointInT>::Ptr
search_
;
52
};
53
}
// namespace tracking
54
}
// namespace pcl
55
56
#ifdef PCL_NO_PRECOMPILE
57
#include <pcl/tracking/impl/approx_nearest_pair_point_cloud_coherence.hpp>
58
#endif
pcl::search::Octree::Ptr
shared_ptr< pcl::search::Octree< PointT, LeafTWrap, BranchTWrap, OctreeT > > Ptr
Definition
octree.h:72
pcl::tracking::ApproxNearestPairPointCloudCoherence::search_
pcl::search::Octree< PointInT >::Ptr search_
Definition
approx_nearest_pair_point_cloud_coherence.h:51
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:38
pcl::tracking::ApproxNearestPairPointCloudCoherence::PointCoherencePtr
typename NearestPairPointCloudCoherence< PointInT >::PointCoherencePtr PointCoherencePtr
Definition
approx_nearest_pair_point_cloud_coherence.h:17
pcl::tracking::ApproxNearestPairPointCloudCoherence::PointCloudInConstPtr
typename NearestPairPointCloudCoherence< PointInT >::PointCloudInConstPtr PointCloudInConstPtr
Definition
approx_nearest_pair_point_cloud_coherence.h:19
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:11
pcl::tracking::ApproxNearestPairPointCloudCoherence::ApproxNearestPairPointCloudCoherence
ApproxNearestPairPointCloudCoherence()
empty constructor
Definition
approx_nearest_pair_point_cloud_coherence.h:30
pcl::tracking::NearestPairPointCloudCoherence::new_target_
bool new_target_
A flag which is true if target_input_ is updated.
Definition
nearest_pair_point_cloud_coherence.h:85
pcl::tracking::NearestPairPointCloudCoherence::PointCoherencePtr
typename PointCloudCoherence< PointInT >::PointCoherencePtr PointCoherencePtr
Definition
nearest_pair_point_cloud_coherence.h:21
pcl::tracking::NearestPairPointCloudCoherence::NearestPairPointCloudCoherence
NearestPairPointCloudCoherence()
empty constructor
Definition
nearest_pair_point_cloud_coherence.h:32
pcl::tracking::NearestPairPointCloudCoherence::maximum_distance_
double maximum_distance_
max of distance for points to be taken into account
Definition
nearest_pair_point_cloud_coherence.h:91
pcl::tracking::NearestPairPointCloudCoherence::PointCloudInConstPtr
typename PointCloudCoherence< PointInT >::PointCloudInConstPtr PointCloudInConstPtr
Definition
nearest_pair_point_cloud_coherence.h:22
pcl::tracking::PointCloudCoherence::target_input_
PointCloudInConstPtr target_input_
a pointer to target point cloud
Definition
coherence.h:141
pcl::tracking::PointCloudCoherence::getClassName
const std::string & getClassName() const
Get a string representation of the name of this class.
Definition
coherence.h:132
pcl::tracking::PointCloudCoherence::coherence_name_
std::string coherence_name_
The coherence name.
Definition
coherence.h:138
pcl::tracking::PointCloudCoherence::point_coherences_
std::vector< PointCoherencePtr > point_coherences_
a list of pointers to PointCoherence.
Definition
coherence.h:144
pcl::tracking
Definition
approx_nearest_pair_point_cloud_coherence.h:7
pcl
Definition
convolution.h:46
pcl::IndicesConstPtr
shared_ptr< const Indices > IndicesConstPtr
Definition
pcl_base.h:59