PedestrainCounting
|
Public Member Functions | |
ParticleFilterConstVelocity (int n, float velocityThre, float distWeight) | |
void | InitBuffer () |
void | InitTarget (const Rect &target, const Point2D &initVelocity) |
void | Propagate (const Size &imgSize) |
void | CalculateMatchScore (const IntegralImage *intImage, const StrongClassifier *classifier, const Pool< Rect > &dets, std::vector< MatchMatrix::MatchScore >::iterator &matchArray) const |
void | SetVelocitySigma (float sigma) |
![]() | |
ParticleFilter (int n=100, int szParticle=2) | |
void | InitBuffer () |
void | InitTarget (const Rect &target) |
void | Propagate (const Size &imgSize) |
void | Observe (const StrongClassifier *classifier, const IntegralImage *intImage) |
void | Observe (const StrongClassifier *classifier, const IntegralImage *intImage, const Rect &detection, float detectionWeight) |
void | ResampleWithBest () |
void | ResampleWithConfidence () |
void | DrawParticles (cv::Mat &img, const cv::Scalar &color) const |
void | DrawParticlesWithConfidence (cv::Mat &img, const cv::Scalar &color) const |
void | DrawTarget (cv::Mat &img, const cv::Scalar &color) const |
const Rect & | GetTarget () const |
void | SetTarget (const Rect &t) |
Protected Member Functions | |
void | InitParticles () |
![]() | |
int | BinarSearch (float prob) const |
void | InitParticles () |
Protected Attributes | |
Point2D | velocity |
const float | velocityThre |
const float | distWeight |
std::normal_distribution< float > | gaussianVelocity |
![]() | |
const int | numParticles |
int * | particles |
const int | sizeParticle |
float * | confidence |
Rect | target |
std::deque< Rect > | prevDets |
std::default_random_engine | generator |
std::normal_distribution< float > | gaussian |
std::uniform_real_distribution< float > | resampler |
int * | resampleBuffer |