DistanceCoherence computes coherence between two points from the distance between them. the coherence is calculated by 1 / (1 + weight * d^2 ). More...
#include <distance_coherence.h>
Public Member Functions | |
DistanceCoherence () | |
initialize the weight to 1.0. | |
double | getWeight () |
get the weight of coherence. | |
void | setWeight (double weight) |
set 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. |
DistanceCoherence computes coherence between two points from the distance between them. the coherence is calculated by 1 / (1 + weight * d^2 ).
Definition at line 16 of file distance_coherence.h.
pcl::tracking::DistanceCoherence< PointInT >::DistanceCoherence | ( | ) | [inline] |
initialize the weight to 1.0.
Definition at line 21 of file distance_coherence.h.
double pcl::tracking::DistanceCoherence< PointInT >::computeCoherence | ( | PointInT & | source, |
PointInT & | target | ||
) | [protected, virtual] |
return the distance coherence between the two points.
source | instance of source point. |
target | instance of target point. |
Implements pcl::tracking::PointCoherence< PointInT >.
Definition at line 12 of file distance_coherence.hpp.
double pcl::tracking::DistanceCoherence< PointInT >::getWeight | ( | ) | [inline] |
get the weight of coherence.
Definition at line 32 of file distance_coherence.h.
void pcl::tracking::DistanceCoherence< PointInT >::setWeight | ( | double | weight | ) | [inline] |
set the weight of coherence.
weight | the value of the wehgit. |
Definition at line 29 of file distance_coherence.h.
double pcl::tracking::DistanceCoherence< PointInT >::weight_ [protected] |
the weight of coherence.
Definition at line 43 of file distance_coherence.h.