![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpRBProbabilistic3DDriftDetector.h>
Public Member Functions | |
| ColorStatistics ()=default | |
| void | init (const vpRGBf &c, const vpRGBf &var) |
| void | update (const vpRGBf &c, float weight) |
| double | probability (const vpRGBf &c) |
| double | trace () |
| double | covarianceScaleFactor () const |
Public Attributes | |
| vpRGBf | mean |
| vpRGBf | variance |
| vpRGBf | initVariance |
Online estimation of a Gaussian color distribution
, Where
is a diagonal variance matrix
.
This class uses exponential moving average and variance estimation to approximage the distribution of the different RGB color components.
It does not estimate the full covariance matrix, but rather the variance of the individual RGB components.
Definition at line 116 of file vpRBProbabilistic3DDriftDetector.h.
|
default |
|
inline |
Definition at line 186 of file vpRBProbabilistic3DDriftDetector.h.
References variance.
|
inline |
Definition at line 120 of file vpRBProbabilistic3DDriftDetector.h.
References initVariance, mean, and variance.
Referenced by vpRBProbabilistic3DDriftDetector::update().
|
inline |
Computes the probability that the input color was sampled from the estimated distribution.
| c |
Definition at line 150 of file vpRBProbabilistic3DDriftDetector.h.
References vpRGBf::B, vpRGBf::G, initVariance, mean, and vpRGBf::R.
|
inline |
Definition at line 174 of file vpRBProbabilistic3DDriftDetector.h.
References variance.
|
inline |
Update the color distribution with a new sample c.
| c | |
| weight | The importance of c (between 0 and 1) in the distribution update (see Exponential moving average). A high value prioritizes the last seen values. |
Definition at line 135 of file vpRBProbabilistic3DDriftDetector.h.
References vpRGBf::B, vpRGBf::G, mean, vpRGBf::R, and variance.
| vpRGBf vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::initVariance |
Definition at line 196 of file vpRBProbabilistic3DDriftDetector.h.
Referenced by init(), and probability().
| vpRGBf vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::mean |
Definition at line 194 of file vpRBProbabilistic3DDriftDetector.h.
Referenced by init(), probability(), and update().
| vpRGBf vpRBProbabilistic3DDriftDetector::vpStored3DSurfaceColorPoint::ColorStatistics::variance |
Definition at line 195 of file vpRBProbabilistic3DDriftDetector.h.
Referenced by covarianceScaleFactor(), init(), trace(), and update().