3 #include <pcl/tracking/coherence.h>
14 template <
typename Po
intInT>
17 using Ptr = shared_ptr<HSVColorCoherence<PointInT>>;
18 using ConstPtr = shared_ptr<const HSVColorCoherence<PointInT>>;
118 #ifdef PCL_NO_PRECOMPILE
119 #include <pcl/tracking/impl/hsv_color_coherence.hpp>
HSVColorCoherence computes coherence between the two points from the color difference between them.
void setWeight(double weight)
set the weight of coherence
HSVColorCoherence()
initialize the weights of the computation.
void setHWeight(double weight)
set the hue weight (w_h) of coherence
void setSWeight(double weight)
set the saturation weight (w_s) of coherence
double getWeight()
get the weight (w) of coherence
double getSWeight()
get the saturation weight (w_s) of coherence
double computeCoherence(PointInT &source, PointInT &target) override
return the color coherence between the two points.
double h_weight_
the hue weight (w_h)
double weight_
the weight of coherence (w)
double s_weight_
the saturation weight (w_s)
double getVWeight()
get the value weight (w_v) of coherence
double v_weight_
the value weight (w_v)
void setVWeight(double weight)
set the value weight (w_v) of coherence
double getHWeight()
get the hue weight (w_h) of coherence
PointCoherence is a base class to compute coherence between the two points.
shared_ptr< const PointCoherence< PointInT > > ConstPtr
shared_ptr< PointCoherence< PointInT > > Ptr