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

Public Member Functions

 ImageDetector (Classifier *c, const Options &op)
 
virtual bool Detect (const cv::Mat &img, const IntegralImage *intImage, const Rect &subRegion, const cv::Mat &bkg=defaultBackground)
 
void DrawDetection (cv::Mat &img)
 
void Clear ()
 

Public Attributes

Pool< Rectdets
 

Protected Member Functions

bool IsEqual (const rect &r1, const rect &r2) const
 
bool IsOverlap (const rect &r, const rect &t) const
 

Protected Attributes

Classifierclassifier
 
feat scaleMin
 
feat scaleMax
 
feat scaleStep
 
int slideStep
 
int evidence
 
int modelHeight
 
int modelWidth
 
Pool< recttemp
 
Pool< int > roots
 
UnionFindunionFind
 

Member Function Documentation

bool ImageDetector::Detect ( const cv::Mat &  img,
const IntegralImage intImage,
const Rect subRegion,
const cv::Mat &  bkg = defaultBackground 
)
virtual

Detect, return the resutl in a vector. Notice that sometimes we only want to detect in a subregion of the original image, in such case we have to give the origin parameter, which is the coordinates of the upper-left corner in the original image.

Parameters
imgthe image
intImagethe integral image
subRegionthe subRegion we want to detect
bkgbackground
Returns
true if everything is fine.

Reimplemented in BKGCutDetector.


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