Point Cloud Library (PCL)  1.7.0
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 >:

List of all members.

Public Member Functions

 DistanceCoherence ()
 initialize the weight to 1.0.
void setWeight (double weight)
 set the weight of coherence.
double getWeight ()
 get the weight of coherence.

Protected Member Functions

double computeCoherence (PointInT &source, PointInT &target)
 return the distance coherence between the two points.

Protected Attributes

double weight_
 the weight of coherence.

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 16 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 21 of file distance_coherence.h.


Member Function Documentation

template<typename PointInT >
double pcl::tracking::DistanceCoherence< PointInT >::computeCoherence ( PointInT &  source,
PointInT &  target 
) [protected, virtual]

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.

template<typename PointInT >
double pcl::tracking::DistanceCoherence< PointInT >::getWeight ( ) [inline]

get the weight of coherence.

Definition at line 32 of file distance_coherence.h.

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

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 29 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: