Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
pcl::tracking::DistanceCoherence< PointInT > Class Template Reference

DistanceCoherence computes coherence between two points from the distance between them. More...

#include <pcl/tracking/distance_coherence.h>

+ Inheritance diagram for pcl::tracking::DistanceCoherence< PointInT >:

Public Types

typedef boost::shared_ptr< DistanceCoherence< PointInT > > Ptr
 
- Public Types inherited from pcl::tracking::PointCoherence< PointInT >
typedef boost::shared_ptr< PointCoherence< PointInT > > Ptr
 
typedef boost::shared_ptr< const PointCoherence< PointInT > > ConstPtr
 

Public Member Functions

 DistanceCoherence ()
 initialize the weight to 1.0. More...
 
void setWeight (double weight)
 set the weight of coherence. More...
 
double getWeight ()
 get the weight of coherence. More...
 
- Public Member Functions inherited from pcl::tracking::PointCoherence< PointInT >
 PointCoherence ()
 empty constructor More...
 
virtual ~PointCoherence ()
 empty distructor More...
 
double compute (PointInT &source, PointInT &target)
 compute coherence from the source point to the target point. More...
 

Protected Member Functions

double computeCoherence (PointInT &source, PointInT &target) override
 return the distance coherence between the two points. More...
 
- Protected Member Functions inherited from pcl::tracking::PointCoherence< PointInT >
const std::string & getClassName () const
 Get a string representation of the name of this class. More...
 

Protected Attributes

double weight_
 the weight of coherence. More...
 
- Protected Attributes inherited from pcl::tracking::PointCoherence< PointInT >
std::string coherence_name_
 The coherence name. More...
 

Detailed Description

template<typename PointInT>
class pcl::tracking::DistanceCoherence< PointInT >

DistanceCoherence computes coherence between two points from the distance between them.

the coherence is calculated by 1 / (1 + weight * d^2 ).

Author
Ryohei Ueda

Definition at line 17 of file distance_coherence.h.

Member Typedef Documentation

template<typename PointInT >
typedef boost::shared_ptr<DistanceCoherence<PointInT> > pcl::tracking::DistanceCoherence< PointInT >::Ptr

Definition at line 21 of file distance_coherence.h.

Constructor & Destructor Documentation

template<typename PointInT >
pcl::tracking::DistanceCoherence< PointInT >::DistanceCoherence ( )
inline

initialize the weight to 1.0.

Definition at line 24 of file distance_coherence.h.

Member Function Documentation

template<typename PointInT >
double pcl::tracking::DistanceCoherence< PointInT >::computeCoherence ( PointInT &  source,
PointInT &  target 
)
overrideprotectedvirtual

return the distance coherence between the two points.

Parameters
sourceinstance of source point.
targetinstance of target point.

Implements pcl::tracking::PointCoherence< PointInT >.

Definition at line 12 of file distance_coherence.hpp.

Referenced by pcl::tracking::DistanceCoherence< PointInT >::getWeight().

template<typename PointInT >
double pcl::tracking::DistanceCoherence< PointInT >::getWeight ( )
inline
template<typename PointInT >
void pcl::tracking::DistanceCoherence< PointInT >::setWeight ( double  weight)
inline

set the weight of coherence.

Parameters
weightthe value of the wehgit.

Definition at line 32 of file distance_coherence.h.

References pcl::tracking::DistanceCoherence< PointInT >::weight_.

Member Data Documentation

template<typename PointInT >
double pcl::tracking::DistanceCoherence< PointInT >::weight_
protected

The documentation for this class was generated from the following files: