HSVColorCoherence computes coherence between the two points from the color difference between them. the color difference is calculated in HSV color space. the coherence is calculated by 1 / ( 1 + w * (w_h^2 * h_diff^2 + w_s^2 * s_diff^2 + w_v^2 * v_diff^2)) More...
#include <hsv_color_coherence.h>
Public Member Functions | |
double | getHWeight () |
get the hue weight (w_h) of coherence | |
double | getSWeight () |
get the saturation weight (w_s) of coherence | |
double | getVWeight () |
get the value weight (w_v) of coherence | |
double | getWeight () |
get the weight (w) of coherence | |
HSVColorCoherence () | |
initialize the weights of the computation. weight_, h_weight_, s_weight_ default to 1.0 and v_weight_ defaults to 0.0. | |
void | setHWeight (double weight) |
set the hue weight (w_h) of coherence | |
void | setSWeight (double weight) |
set the saturation weight (w_s) of coherence | |
void | setVWeight (double weight) |
set the value weight (w_v) of coherence | |
void | setWeight (double weight) |
set the weight of coherence | |
Protected Member Functions | |
double | computeCoherence (PointInT &source, PointInT &target) |
return the color coherence between the two points. | |
Protected Attributes | |
double | h_weight_ |
the hue weight (w_h) | |
double | s_weight_ |
the saturation weight (w_s) | |
double | v_weight_ |
the value weight (w_v) | |
double | weight_ |
the weight of coherence (w) |
HSVColorCoherence computes coherence between the two points from the color difference between them. the color difference is calculated in HSV color space. the coherence is calculated by 1 / ( 1 + w * (w_h^2 * h_diff^2 + w_s^2 * s_diff^2 + w_v^2 * v_diff^2))
Definition at line 17 of file hsv_color_coherence.h.
pcl::tracking::HSVColorCoherence< PointInT >::HSVColorCoherence | ( | ) | [inline] |
initialize the weights of the computation. weight_, h_weight_, s_weight_ default to 1.0 and v_weight_ defaults to 0.0.
Definition at line 25 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::computeCoherence | ( | PointInT & | source, |
PointInT & | target | ||
) | [protected, virtual] |
return the color coherence between the two points.
[in] | source | instance of source point. |
[in] | target | instance of target point. |
Implements pcl::tracking::PointCoherence< PointInT >.
Definition at line 148 of file hsv_color_coherence.hpp.
double pcl::tracking::HSVColorCoherence< PointInT >::getHWeight | ( | ) | [inline] |
get the hue weight (w_h) of coherence
Definition at line 51 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::getSWeight | ( | ) | [inline] |
get the saturation weight (w_s) of coherence
Definition at line 61 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::getVWeight | ( | ) | [inline] |
get the value weight (w_v) of coherence
Definition at line 71 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::getWeight | ( | ) | [inline] |
get the weight (w) of coherence
Definition at line 41 of file hsv_color_coherence.h.
void pcl::tracking::HSVColorCoherence< PointInT >::setHWeight | ( | double | weight | ) | [inline] |
set the hue weight (w_h) of coherence
[in] | weight | the hue weight (w_h) of coherence. |
Definition at line 47 of file hsv_color_coherence.h.
void pcl::tracking::HSVColorCoherence< PointInT >::setSWeight | ( | double | weight | ) | [inline] |
set the saturation weight (w_s) of coherence
[in] | weight | the saturation weight (w_s) of coherence. |
Definition at line 57 of file hsv_color_coherence.h.
void pcl::tracking::HSVColorCoherence< PointInT >::setVWeight | ( | double | weight | ) | [inline] |
set the value weight (w_v) of coherence
[in] | weight | the value weight (w_v) of coherence. |
Definition at line 67 of file hsv_color_coherence.h.
void pcl::tracking::HSVColorCoherence< PointInT >::setWeight | ( | double | weight | ) | [inline] |
set the weight of coherence
[in] | weight | the weight of coherence. |
Definition at line 37 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::h_weight_ [protected] |
the hue weight (w_h)
Definition at line 86 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::s_weight_ [protected] |
the saturation weight (w_s)
Definition at line 89 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::v_weight_ [protected] |
the value weight (w_v)
Definition at line 92 of file hsv_color_coherence.h.
double pcl::tracking::HSVColorCoherence< PointInT >::weight_ [protected] |
the weight of coherence (w)
Definition at line 83 of file hsv_color_coherence.h.