|
X-Boost
2.3.8
|
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_t > | m_feats |
| lista di feature generator allocati | |
Static Public Attributes | |
| static const char * | default_pattern |
| a default pattern for all features in library | |
Base Feature Generator for Haar Bases using FeatureGenerator_t.
| 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
| out | an Haar Feature |
| x,y,w,h | coverage of feature |
| idx | feature index (see table) |
1.8.7