|
PedestrainCounting
|
#include <WeakClassifierHoG.h>
Public Member Functions | |
| WeakClassifierHoG (const Feature &reference, float min, float max, int offsetW, int offsetH, int w, int h, float *histogram) | |
| float | Evaluate (const IntegralImage *intImage, const Rect &roi, float scale=1.0f) |
| float | EvaluateThre (const IntegralImage *intImage, const Rect &roi, float scale=1.0f) |
Public Member Functions inherited from WeakClassifier | |
| virtual bool | Update (const IntegralImage *intImage, const Rect &roi, int target) |
| virtual void | Initialize (const Size &patchSize) |
| virtual float | Evaluate (const IntegralImage *intImage, const Rect &roi) |
Public Member Functions inherited from Classifier | |
| virtual int | Classify (const IntegralImage *intImage, const Rect &roi, float scale=1.0f) |
Given a roi in an image, finds the HoG in some subregion and project it to get some value.
| WeakClassifierHoG::WeakClassifierHoG | ( | const Feature & | reference, |
| float | min, | ||
| float | max, | ||
| int | offsetW, | ||
| int | offsetH, | ||
| int | w, | ||
| int | h, | ||
| float * | histogram | ||
| ) |
Construct a weak classifier.
| reference | the reference for this weak classifier. |
| min,max | used to find the histogram. histogram: histogram. |
| others | for the HoGFeature. |
|
virtual |
Return the dot product between the reference and result.
Reimplemented from Classifier.
| float WeakClassifierHoG::EvaluateThre | ( | const IntegralImage * | intImage, |
| const Rect & | roi, | ||
| float | scale = 1.0f |
||
| ) |
Return the increament in threshold. Used in AdaBoosting classifier.
1.8.9.1