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

PointCloudCoherence is a base class to compute coherence between the two PointClouds. More...

#include <pcl/tracking/coherence.h>

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

Public Types

typedef boost::shared_ptr< PointCloudCoherence< PointInT > > Ptr
 
typedef boost::shared_ptr< const PointCloudCoherence< PointInT > > ConstPtr
 
typedef pcl::PointCloud< PointInT > PointCloudIn
 
typedef PointCloudIn::Ptr PointCloudInPtr
 
typedef PointCloudIn::ConstPtr PointCloudInConstPtr
 
typedef PointCoherence< PointInT >::Ptr PointCoherencePtr
 

Public Member Functions

 PointCloudCoherence ()
 Constructor. More...
 
virtual ~PointCloudCoherence ()
 Destructor. More...
 
void compute (const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_i)
 compute coherence between two pointclouds. More...
 
std::vector< PointCoherencePtrgetPointCoherences ()
 get a list of pcl::tracking::PointCoherence. More...
 
void setPointCoherences (std::vector< PointCoherencePtr > coherences)
 set a list of pcl::tracking::PointCoherence. More...
 
virtual bool initCompute ()
 This method should get called before starting the actual computation. More...
 
void addPointCoherence (PointCoherencePtr coherence)
 add a PointCoherence to the PointCloudCoherence. More...
 
virtual void setTargetCloud (const PointCloudInConstPtr &cloud)
 add a PointCoherence to the PointCloudCoherence. More...
 

Protected Member Functions

virtual void computeCoherence (const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_j)=0
 Abstract method to compute coherence. More...
 
double calcPointCoherence (PointInT &source, PointInT &target)
 
const std::string & getClassName () const
 Get a string representation of the name of this class. More...
 

Protected Attributes

std::string coherence_name_
 The coherence name. More...
 
PointCloudInConstPtr target_input_
 a pointer to target point cloud More...
 
std::vector< PointCoherencePtrpoint_coherences_
 a list of pointers to PointCoherence. More...
 

Detailed Description

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

PointCloudCoherence is a base class to compute coherence between the two PointClouds.

Author
Ryohei Ueda

Definition at line 59 of file coherence.h.

Member Typedef Documentation

template<typename PointInT>
typedef boost::shared_ptr< const PointCloudCoherence<PointInT> > pcl::tracking::PointCloudCoherence< PointInT >::ConstPtr

Definition at line 63 of file coherence.h.

template<typename PointInT>
typedef pcl::PointCloud<PointInT> pcl::tracking::PointCloudCoherence< PointInT >::PointCloudIn

Definition at line 65 of file coherence.h.

template<typename PointInT>
typedef PointCloudIn::ConstPtr pcl::tracking::PointCloudCoherence< PointInT >::PointCloudInConstPtr

Definition at line 67 of file coherence.h.

template<typename PointInT>
typedef PointCloudIn::Ptr pcl::tracking::PointCloudCoherence< PointInT >::PointCloudInPtr

Definition at line 66 of file coherence.h.

template<typename PointInT>
typedef PointCoherence<PointInT>::Ptr pcl::tracking::PointCloudCoherence< PointInT >::PointCoherencePtr

Definition at line 69 of file coherence.h.

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

Definition at line 62 of file coherence.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 71 of file coherence.h.

template<typename PointInT>
virtual pcl::tracking::PointCloudCoherence< PointInT >::~PointCloudCoherence ( )
inlinevirtual

Destructor.

Definition at line 74 of file coherence.h.

References pcl::tracking::PointCoherence< PointInT >::compute().

Member Function Documentation

template<typename PointInT>
void pcl::tracking::PointCloudCoherence< PointInT >::addPointCoherence ( PointCoherencePtr  coherence)
inline

add a PointCoherence to the PointCloudCoherence.

Parameters
coherencea pointer to PointCoherence.

Definition at line 98 of file coherence.h.

template<typename PointInT>
double pcl::tracking::PointCloudCoherence< PointInT >::calcPointCoherence ( PointInT &  source,
PointInT &  target 
)
inlineprotected

Definition at line 19 of file coherence.hpp.

template<typename PointInT >
void pcl::tracking::PointCloudCoherence< PointInT >::compute ( const PointCloudInConstPtr cloud,
const IndicesConstPtr indices,
float &  w_i 
)
inline

compute coherence between two pointclouds.

Definition at line 49 of file coherence.hpp.

template<typename PointInT>
virtual void pcl::tracking::PointCloudCoherence< PointInT >::computeCoherence ( const PointCloudInConstPtr cloud,
const IndicesConstPtr indices,
float &  w_j 
)
protectedpure virtual
template<typename PointInT>
const std::string& pcl::tracking::PointCloudCoherence< PointInT >::getClassName ( ) const
inlineprotected

Get a string representation of the name of this class.

Definition at line 115 of file coherence.h.

References pcl::tracking::PointCoherence< PointInT >::coherence_name_.

template<typename PointInT>
std::vector<PointCoherencePtr> pcl::tracking::PointCloudCoherence< PointInT >::getPointCoherences ( )
inline

get a list of pcl::tracking::PointCoherence.

Definition at line 83 of file coherence.h.

template<typename PointInT >
bool pcl::tracking::PointCloudCoherence< PointInT >::initCompute ( )
virtual

This method should get called before starting the actual computation.

Reimplemented in pcl::tracking::NearestPairPointCloudCoherence< PointInT >, and pcl::tracking::ApproxNearestPairPointCloudCoherence< PointInT >.

Definition at line 36 of file coherence.hpp.

template<typename PointInT>
void pcl::tracking::PointCloudCoherence< PointInT >::setPointCoherences ( std::vector< PointCoherencePtr coherences)
inline

set a list of pcl::tracking::PointCoherence.

Parameters
coherencesa list of pcl::tracking::PointCoherence.

Definition at line 89 of file coherence.h.

template<typename PointInT>
virtual void pcl::tracking::PointCloudCoherence< PointInT >::setTargetCloud ( const PointCloudInConstPtr cloud)
inlinevirtual

Member Data Documentation

template<typename PointInT>
std::string pcl::tracking::PointCloudCoherence< PointInT >::coherence_name_
protected
template<typename PointInT>
std::vector<PointCoherencePtr> pcl::tracking::PointCloudCoherence< PointInT >::point_coherences_
protected

a list of pointers to PointCoherence.

Definition at line 125 of file coherence.h.

template<typename PointInT>
PointCloudInConstPtr pcl::tracking::PointCloudCoherence< PointInT >::target_input_
protected

a pointer to target point cloud

Definition at line 122 of file coherence.h.


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