X-Boost  2.3.8
Public Types | Public Member Functions | List of all members
RandomFeatureGenerator Class Reference

This generator, instead of exhaustive, use a Random sampling approach. More...

#include <HaarFeatureGenerators.h>

Inherits BaseHaarFeatureGenerator, and FeatureGenerator< Feature >.

Public Types

typedef HaarFeature FeatureType
 
- Public Types inherited from FeatureGenerator< Feature >
typedef Feature FeatureType
 The feature type generate by this generator.
 

Public Member Functions

 RandomFeatureGenerator (const char *pattern, int nFeat)
 
unsigned int Count () const
 return the count of feature available
 
bool Next (HaarFeature &out)
 
void Reset ()
 reset any interal counters
 
- Public Member Functions inherited from BaseHaarFeatureGenerator
 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 Member Functions inherited from FeatureGenerator< Feature >
virtual bool CanBePrecomputed () const
 Test if the feature generator can be precomputed. In this case Count must be valid.
 
virtual bool Next (Feature &out)=0
 return the next feature, or return false
 

Additional Inherited Members

- Public Attributes inherited from BaseHaarFeatureGenerator
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 inherited from BaseHaarFeatureGenerator
static const char * default_pattern
 a default pattern for all features in library
 

Detailed Description

This generator, instead of exhaustive, use a Random sampling approach.


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