21 #ifndef _NORMALIZED_HAAR_FEATURE_H
22 #define _NORMALIZED_HAAR_FEATURE_H
28 #include "HaarFeature.h"
49 static std::string
signature() {
return "normalized-haar"; }
51 inline int response(
const unsigned int *pIntImage,
int stride)
const
54 int factor = pIntImage[-1 - stride] + pIntImage[
width + height * stride] - pIntImage[
width] - pIntImage[height * stride];
55 return (value * 65536) / factor;
59 inline int operator() (
const unsigned int *pIntImage,
int stride)
const
61 return response(pIntImage, stride);
71 height = (height * sy + sy - 1);
void rescale(int sx, int sy)
Definition: NormalizedHaarFeature.h:67
static std::string signature()
Definition: NormalizedHaarFeature.h:49
A rationale haar feature.
Definition: NormalizedHaarFeature.h:31
unsigned int InputDataType
type of data requested by this Feature Extractor
Definition: NormalizedHaarFeature.h:39
int width
roi
Definition: NormalizedHaarFeature.h:34
void rescale(int sx, int sy)
Definition: HaarFeature.h:141
int response(const unsigned int *pIntImage, int stride) const
Definition: HaarFeature.h:127
An haar Feature: a collection of weighted HaarNode.
Definition: HaarFeature.h:63