PedestrainCounting
|
#include <ClassifierThreshold.h>
Public Member Functions | |
void | Update (const Feature &feature, int target) |
int | Classify (const Feature &feature) const |
void | Reset () |
void * | GetDistribution (int target) const |
This class use N-D Gaussian distribution for pos and neg data set. Given a feature, it returns whether it's positive or negative.
int ClassifierThreshold< N >::Classify | ( | const Feature & | feature | ) | const |
Classify the feature. Use the simple Euclidean distance to pos and neg cluster.
feature | the feature extracted, should be N dimension |
|
inline |
Reset everything to the start state.
void ClassifierThreshold< N >::Update | ( | const Feature & | feature, |
int | target | ||
) |
Use Kalman filter to update the pos and neg cluster.
feature | the feature extracted, should be N dimension. |
target | positive > 0, negative <= 0. |