Point Cloud Library (PCL)
1.9.1-dev
|
NormalCoherence computes coherence between two points from the angle between their normals. More...
#include <pcl/tracking/normal_coherence.h>
Public Member Functions | |
NormalCoherence () | |
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... | |
![]() | |
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 normal coherence between the two points. More... | |
![]() | |
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... | |
![]() | |
std::string | coherence_name_ |
The coherence name. More... | |
Additional Inherited Members | |
![]() | |
typedef boost::shared_ptr< PointCoherence< PointInT > > | Ptr |
typedef boost::shared_ptr< const PointCoherence< PointInT > > | ConstPtr |
NormalCoherence computes coherence between two points from the angle between their normals.
the coherence is calculated by 1 / (1 + weight * theta^2 ).
Definition at line 14 of file normal_coherence.h.
|
inline |
initialize the weight to 1.0.
Definition at line 19 of file normal_coherence.h.
|
overrideprotectedvirtual |
return the normal coherence between the two points.
source | instance of source point. |
target | instance of target point. |
Implements pcl::tracking::PointCoherence< PointInT >.
Definition at line 9 of file normal_coherence.hpp.
References pcl::getAngle3D().
Referenced by pcl::tracking::NormalCoherence< PointInT >::getWeight().
|
inline |
get the weight of coherence
Definition at line 30 of file normal_coherence.h.
References pcl::tracking::NormalCoherence< PointInT >::computeCoherence(), and pcl::tracking::NormalCoherence< PointInT >::weight_.
|
inline |
set the weight of coherence
weight | the weight of coherence |
Definition at line 27 of file normal_coherence.h.
References pcl::tracking::NormalCoherence< PointInT >::weight_.
|
protected |
the weight of coherence
Definition at line 41 of file normal_coherence.h.
Referenced by pcl::tracking::NormalCoherence< PointInT >::getWeight(), and pcl::tracking::NormalCoherence< PointInT >::setWeight().