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

Base Feature Generator for Haar Bases using FeatureGenerator_t. More...

#include <HaarFeatureGenerators.h>

Inherited by BruteForceFeatureGenerator, and RandomFeatureGenerator.

Public Member Functions

 BaseHaarFeatureGenerator (const char *pattern)
 
void SetGeometry (int mw, int mh)
 Width Height.
 
void SetFeatureMinArea (int minArea)
 A constraint on minimum area of a feature (width x height > minArea)
 
void SetFeatureMinWidth (int minWidth)
 Set the minimum feature size.
 
void SetStep (int step)
 searching step
 
void SetBorder (int border)
 set a border around patch (in Haar normally have not meaning)
 
bool generate (HaarFeature &f, int x, int y, int w, int h, int idx)
 
unsigned int W () const
 Return the generator geometry.
 
unsigned int H () const
 
unsigned int Size () const
 
unsigned int Feature () const
 Return the number of feature in the vector.
 

Public Attributes

unsigned int m_mw
 pattern size
 
unsigned int m_mh
 
unsigned int m_minFeatArea
 dimensione minima
 
unsigned int m_minWidth
 min Width/Height
 
unsigned int m_step
 Step for feature search.
 
std::vector< FeatureGenerator_tm_feats
 lista di feature generator allocati
 

Static Public Attributes

static const char * default_pattern
 a default pattern for all features in library
 

Detailed Description

Base Feature Generator for Haar Bases using FeatureGenerator_t.

Member Function Documentation

bool BaseHaarFeatureGenerator::generate ( HaarFeature f,
int  x,
int  y,
int  w,
int  h,
int  idx 
)

Generate a classifier able to analize a width x height area from order idx

Parameters
outan Haar Feature
x,y,w,hcoverage of feature
idxfeature index (see table)

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