|
PedestrainCounting
|
#include <HoGFeature.h>
Public Member Functions | |
| HoGFeature (int offsetW, int offsetH, int w, int h) | |
| bool | Extract (const IntegralImage *intImage, const Rect &roi, Feature *feature, float scale=1.0f) const |
Extract the HoG of subregion in the roi.
| bool HoGFeature::Extract | ( | const IntegralImage * | intImage, |
| const Rect & | roi, | ||
| Feature * | feature, | ||
| float | scale = 1.0f |
||
| ) | const |
The patch is like this:
<---—[scaledWith / 2]---—^----—[scaledWidth - scaledWidth / 2]---—> | | | [scaledHeight / 2] | | | | | ^-------------------------—^-----------------------------------------—^ | | | [scaledHeight - | | scaledHeight / 2] | | | | | ^-------------------------—^-----------------------------------------—^
1.8.9.1