Point Cloud Library (PCL) 1.15.1
Loading...
Searching...
No Matches
pcl::tracking::PointCoherence< PointInT > Class Template Referenceabstract

PointCoherence is a base class to compute coherence between the two points. More...

#include <pcl/tracking/coherence.h>

Inheritance diagram for pcl::tracking::PointCoherence< PointInT >:

Public Types

using Ptr = shared_ptr<PointCoherence<PointInT>>
using ConstPtr = shared_ptr<const PointCoherence<PointInT>>

Public Member Functions

 PointCoherence ()=default
 empty constructor
virtual ~PointCoherence ()=default
 empty destructor
double compute (PointInT &source, PointInT &target)
 compute coherence from the source point to the target point.

Protected Member Functions

virtual double computeCoherence (PointInT &source, PointInT &target)=0
 abstract method to calculate coherence.
const std::string & getClassName () const
 Get a string representation of the name of this class.

Protected Attributes

std::string coherence_name_
 The coherence name.

Detailed Description

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

PointCoherence is a base class to compute coherence between the two points.

Author
Ryohei Ueda

Definition at line 15 of file coherence.h.

Member Typedef Documentation

◆ ConstPtr

template<typename PointInT>
using pcl::tracking::PointCoherence< PointInT >::ConstPtr = shared_ptr<const PointCoherence<PointInT>>

Definition at line 18 of file coherence.h.

◆ Ptr

template<typename PointInT>
using pcl::tracking::PointCoherence< PointInT >::Ptr = shared_ptr<PointCoherence<PointInT>>

Definition at line 17 of file coherence.h.

Constructor & Destructor Documentation

◆ PointCoherence()

◆ ~PointCoherence()

template<typename PointInT>
virtual pcl::tracking::PointCoherence< PointInT >::~PointCoherence ( )
virtualdefault

empty destructor

Member Function Documentation

◆ compute()

template<typename PointInT>
double pcl::tracking::PointCoherence< PointInT >::compute ( PointInT & source,
PointInT & target )
inline

compute coherence from the source point to the target point.

Parameters
sourceinstance of source point.
targetinstance of target point.

Definition at line 12 of file coherence.hpp.

References computeCoherence().

◆ computeCoherence()

template<typename PointInT>
virtual double pcl::tracking::PointCoherence< PointInT >::computeCoherence ( PointInT & source,
PointInT & target )
protectedpure virtual

abstract method to calculate coherence.

Parameters
[in]sourceinstance of source point.
[in]targetinstance of target point.

Implemented in pcl::tracking::DistanceCoherence< PointInT >, pcl::tracking::HSVColorCoherence< PointInT >, and pcl::tracking::NormalCoherence< PointInT >.

Referenced by compute().

◆ getClassName()

template<typename PointInT>
const std::string & pcl::tracking::PointCoherence< PointInT >::getClassName ( ) const
inlineprotected

Get a string representation of the name of this class.

Definition at line 47 of file coherence.h.

References coherence_name_.

Member Data Documentation

◆ coherence_name_

template<typename PointInT>
std::string pcl::tracking::PointCoherence< PointInT >::coherence_name_
protected

The coherence name.

Definition at line 36 of file coherence.h.

Referenced by getClassName().


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