A mixture of Gaussians adaptive updater base on Leotta-Mundy. More...
#include <vpdt_update_mog.h>

Public Types | |
| typedef mog_type::component_type | gaussian_type |
| typedef gaussian_type::field_type | F |
| typedef vpdt_field_traits< F >::scalar_type | T |
| typedef mog_type | distribution_type |
| typedef mog_type::field_type | field_type |
Public Member Functions | |
| vpdt_mog_lm_updater (const gaussian_type &init_gaussian, unsigned int max_cmp=5, T g_thresh=T(2.5), T min_stdev=T(0.16), unsigned int ws=300) | |
| Constructor. More... | |
| void | operator() (mog_type &mix, const F &sample, T sample_weight=T(1)) const |
| The main function. More... | |
Protected Member Functions | |
| T | total_weight (const mog_type &mix) const |
| Count the total mixture weight. More... | |
| void | update (mog_type &mix, const F &sample, T samp_weight) const |
| Update the mixture with sample using learning rate alpha. More... | |
| void | insert (mog_type &mixture, const F &sample, T init_weight) const |
| insert a sample in the mixture. More... | |
| unsigned int | match (const mog_type &mix, const F &sample, const T >2, T &sqr_dist) const |
| Return the index of the first Gaussian within the threshold distance. More... | |
Protected Attributes | |
| T | gt2_ |
| Squared Gaussian Mahalanobis distance threshold. More... | |
| T | min_var_ |
| Minimum variance allowed in each Gaussian component. More... | |
| unsigned int | window_size_ |
| The moving window size in number of frames. More... | |
| gaussian_type | init_gaussian_ |
| A model for new Gaussians inserted. More... | |
| unsigned int | max_components_ |
| The maximum number of components in the mixture. More... | |
A mixture of Gaussians adaptive updater base on Leotta-Mundy.
Combines the greedy matching of the S-G method for speed with the dynamic learning rate of Lee for faster learning. Unnormalized weights serve a dual role with observation counts. This algorithm is based on: M. Leotta and J. Mundy, "Learning background and shadow appearance with 3-d vehicle models", BMVC, 2:649–658, September 2006.
Definition at line 317 of file vpdt_update_mog.h.
|
inherited |
Definition at line 28 of file vpdt_update_mog.h.
| typedef gaussian_type::field_type vpdt_mog_lm_updater< mog_type >::F |
Definition at line 321 of file vpdt_update_mog.h.
|
inherited |
Definition at line 29 of file vpdt_update_mog.h.
| typedef mog_type::component_type vpdt_mog_lm_updater< mog_type >::gaussian_type |
Definition at line 320 of file vpdt_update_mog.h.
| typedef vpdt_field_traits<F>::scalar_type vpdt_mog_lm_updater< mog_type >::T |
Definition at line 322 of file vpdt_update_mog.h.
|
inline |
Constructor.
Definition at line 325 of file vpdt_update_mog.h.
|
inlineprotectedinherited |
insert a sample in the mixture.
| sample | A Gaussian is inserted with a mean of sample and a covariance from init_gaussian_ |
| init_weight | The normalized weight the resulting sample should have after insertion |
Definition at line 47 of file vpdt_update_mog.h.
|
inlineprotectedinherited |
Return the index of the first Gaussian within the threshold distance.
The threshold gt2 is on the square distance. The computed square distance is returned by reference in sqr_dist If there are no matches return the number of components (last index + 1)
Definition at line 73 of file vpdt_update_mog.h.
|
inline |
The main function.
Definition at line 335 of file vpdt_update_mog.h.
|
inlineprotected |
Count the total mixture weight.
Definition at line 343 of file vpdt_update_mog.h.
|
inlineprotected |
Update the mixture with sample using learning rate alpha.
Definition at line 354 of file vpdt_update_mog.h.
|
protected |
Squared Gaussian Mahalanobis distance threshold.
Definition at line 391 of file vpdt_update_mog.h.
|
mutableprotectedinherited |
A model for new Gaussians inserted.
Definition at line 87 of file vpdt_update_mog.h.
|
protectedinherited |
The maximum number of components in the mixture.
Definition at line 89 of file vpdt_update_mog.h.
|
protected |
Minimum variance allowed in each Gaussian component.
Definition at line 393 of file vpdt_update_mog.h.
|
protected |
The moving window size in number of frames.
Definition at line 395 of file vpdt_update_mog.h.
1.8.15