PedestrainCounting
Public Member Functions | Public Attributes | List of all members
TargetsFreeList Class Reference

Public Member Functions

 TargetsFreeList (const Options &opts)
 
void ResetOneTarget (int index)
 
int InitializeTarget (const Rect &target, const Point2D &initVelocity)
 
void Propagate (const Size &imgSize)
 
void Observe (const IntegralImage *intImage, const Pool< Rect > &detections)
 
void Resample ()
 
bool GetTarget (int index, Rect &t) const
 
int GetCapacity () const
 
void CalculateMatchScore (const IntegralImage *intImage, const Pool< Rect > &dets, std::vector< MatchMatrix::MatchScore > &matchMat) const
 
bool CheckNearbyTarget (const Rect &det, int distThre) const
 
const std::vector< int > & GetMatchDets ()
 
void Train (const IntegralImage *intImage, const MultiSampler *multiSampler)
 
void Train (int idx, const IntegralImage *intImage, const SingleSampler *singleSampler)
 
void DrawTargets (cv::Mat &img, int index=-1) const
 
void DrawParticles (cv::Mat &img, int index=-1) const
 
void DrawParticlesWithConfidence (cv::Mat &img, int index=-1) const
 
void DrawMatches (cv::Mat &img, Pool< Rect > dets)
 

Public Attributes

std::vector< TargetsFreeListNodelistNodes
 
const int capacity
 
const float detectionWeight
 
std::vector< int > matchDets
 

Member Function Documentation

void TargetsFreeList::CalculateMatchScore ( const IntegralImage intImage,
const Pool< Rect > &  dets,
std::vector< MatchMatrix::MatchScore > &  matchMat 
) const

Calculate the target-detection matching score matrix.

Parameters
intImageintegral image
detsdetections
matchMatmatching score matrix
bool TargetsFreeList::CheckNearbyTarget ( const Rect det,
int  distThre 
) const

Check if there are targets nearby.

void TargetsFreeList::Observe ( const IntegralImage intImage,
const Pool< Rect > &  detections 
)

Observe all the targets' partices.

void TargetsFreeList::Propagate ( const Size imgSize)

Propagate all the targets' particles.

void TargetsFreeList::ResetOneTarget ( int  index)

Reset one target.

void TargetsFreeList::Train ( const IntegralImage intImage,
const MultiSampler multiSampler 
)

Online training.


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