|
X-Boost
2.3.8
|
A library able to generate any Haar Feature. More...
#include <HaarFeatureGenerators.h>
Inherits BaseHaarFeatureGenerator, and FeatureGenerator< Feature >.
Public Member Functions | |
| BruteForceFeatureGenerator (const char *pattern) | |
| void | SetGeometry (int mw, int mh) |
| void | SetFeatureMinArea (int minArea) |
| void | Reset () |
| reset any interal counters | |
| unsigned int | Count () const |
| return the count of feature available | |
| bool | Next (HaarFeature &out) |
| Provide a new feature, or return false. | |
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 Types inherited from FeatureGenerator< Feature > | |
| typedef Feature | FeatureType |
| The feature type generate by this generator. | |
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_t > | m_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 | |
A library able to generate any Haar Feature.
1.8.7