PedestrainCounting
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ParticleFilterConstVelocity Class Reference
Inheritance diagram for ParticleFilterConstVelocity:
ParticleFilter

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)
 
- Public Member Functions inherited from ParticleFilter
 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 RectGetTarget () const
 
void SetTarget (const Rect &t)
 

Protected Member Functions

void InitParticles ()
 
- Protected Member Functions inherited from ParticleFilter
int BinarSearch (float prob) const
 
void InitParticles ()
 

Protected Attributes

Point2D velocity
 
const float velocityThre
 
const float distWeight
 
std::normal_distribution< float > gaussianVelocity
 
- Protected Attributes inherited from ParticleFilter
const int numParticles
 
int * particles
 
const int sizeParticle
 
float * confidence
 
Rect target
 
std::deque< RectprevDets
 
std::default_random_engine generator
 
std::normal_distribution< float > gaussian
 
std::uniform_real_distribution< float > resampler
 
int * resampleBuffer
 

The documentation for this class was generated from the following files: