Point Cloud Library (PCL)
1.11.1-dev
|
3 #include <pcl/pcl_base.h>
14 template <
typename Po
intInT>
17 using Ptr = shared_ptr<PointCoherence<PointInT>>;
18 using ConstPtr = shared_ptr<const PointCoherence<PointInT>>;
32 compute(PointInT& source, PointInT& target);
46 inline const std::string&
58 template <
typename Po
intInT>
61 using Ptr = shared_ptr<PointCloudCoherence<PointInT>>;
62 using ConstPtr = shared_ptr<const PointCloudCoherence<PointInT>>;
82 inline std::vector<PointCoherencePtr>
131 inline const std::string&
150 #include <pcl/tracking/impl/coherence.hpp>
virtual ~PointCoherence()
empty distructor
PointCloudInConstPtr target_input_
a pointer to target point cloud
shared_ptr< const PointCloudCoherence< PointInT > > ConstPtr
double calcPointCoherence(PointInT &source, PointInT &target)
virtual bool initCompute()
This method should get called before starting the actual computation.
double compute(PointInT &source, PointInT &target)
compute coherence from the source point to the target point.
shared_ptr< const Indices > IndicesConstPtr
virtual void computeCoherence(const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_j)=0
Abstract method to compute coherence.
shared_ptr< PointCoherence< PointInT > > Ptr
typename PointCoherence< PointInT >::Ptr PointCoherencePtr
typename PointCloudIn::Ptr PointCloudInPtr
std::string coherence_name_
The coherence name.
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.
PointCoherence()
empty constructor
std::vector< PointCoherencePtr > getPointCoherences()
get a list of pcl::tracking::PointCoherence.
shared_ptr< const PointCoherence< PointInT > > ConstPtr
void addPointCoherence(PointCoherencePtr coherence)
add a PointCoherence to the PointCloudCoherence.
const std::string & getClassName() const
Get a string representation of the name of this class.
typename PointCloudIn::ConstPtr PointCloudInConstPtr
std::string coherence_name_
The coherence name.
shared_ptr< PointCloud< PointInT > > Ptr
void setPointCoherences(std::vector< PointCoherencePtr > coherences)
set a list of pcl::tracking::PointCoherence.
virtual ~PointCloudCoherence()
Destructor.
PointCloudCoherence is a base class to compute coherence between the two PointClouds.
PointCoherence is a base class to compute coherence between the two points.
shared_ptr< const PointCloud< PointInT > > ConstPtr
shared_ptr< PointCloudCoherence< PointInT > > Ptr
void compute(const PointCloudInConstPtr &cloud, const IndicesConstPtr &indices, float &w_i)
compute coherence between two pointclouds.
std::vector< PointCoherencePtr > point_coherences_
a list of pointers to PointCoherence.
virtual void setTargetCloud(const PointCloudInConstPtr &cloud)
add a PointCoherence to the PointCloudCoherence.
PointCloudCoherence()
Constructor.