X-Boost  2.3.8
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HaarFeature Struct Reference

An haar Feature: a collection of weighted HaarNode. More...

#include <HaarFeature.h>

Inherits vector< HaarNode >.

Inherited by NormalizedHaarFeature.

Public Types

enum  { InvokeParam = 2 }
 
typedef unsigned int InputDataType
 type of data requested by this Feature Extractor
 
typedef int DescriptorType
 type of data returned by this feature extractor
 
typedef CollapsedHaarFeature OptimizedType
 the feature used during the application in fast app
 

Public Member Functions

 HaarFeature (const HaarFeature &src, int scale, long offset, long stride)
 
const char * debug_name () const
 
void debug_name (const char *str)
 
void invert_polarity ()
 invert the sign of haar nodes (in order to simplify the decision stump)
 
int response (const unsigned int *pIntImage, int stride) const
 
int operator() (const unsigned int *pIntImage, int stride) const
 
void rescale (int sx, int sy)
 

Static Public Member Functions

static std::string signature ()
 

Public Attributes

const char * name
 

Detailed Description

An haar Feature: a collection of weighted HaarNode.

Constructor & Destructor Documentation

HaarFeature::HaarFeature ( const HaarFeature src,
int  scale,
long  offset,
long  stride 
)
inline

Member Function Documentation

void HaarFeature::rescale ( int  sx,
int  sy 
)
inline

Rescale current feature using sx,sy scale factor

Note
due to particular architecture of this filter, only integral scale factor are alowed now use a fHaarFeature in order to take advantage of floating point rescaling
int HaarFeature::response ( const unsigned int *  pIntImage,
int  stride 
) const
inline

4527.99feat/sec, 4552.72feat/sec, 4722.2feat/sec Evaluate a single feature starting from pIntImage

static std::string HaarFeature::signature ( )
inlinestatic

weak classifier name


The documentation for this struct was generated from the following file: