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> double computeCoherence(PointInT &source, PointInT &target) override
return the color coherence between the two points.
HSVColorCoherence computes coherence between the two points from the color difference between them...
double s_weight_
the saturation weight (w_s)
double v_weight_
the value weight (w_v)
shared_ptr< PointCoherence< PointInT > > Ptr
shared_ptr< const PointCoherence< PointInT > > ConstPtr
double weight_
the weight of coherence (w)
double getVWeight()
get the value weight (w_v) of coherence
PointCoherence is a base class to compute coherence between the two points.
void setVWeight(double weight)
set the value weight (w_v) of coherence
HSVColorCoherence()
initialize the weights of the computation.
void setWeight(double weight)
set the weight of coherence
double getHWeight()
get the hue weight (w_h) of coherence
double getWeight()
get the weight (w) of coherence
void setSWeight(double weight)
set the saturation weight (w_s) of coherence
double getSWeight()
get the saturation weight (w_s) of coherence
double h_weight_
the hue weight (w_h)
void setHWeight(double weight)
set the hue weight (w_h) of coherence