#include <viola_locator.h>
Inheritance diagram for Feature:

Public Methods | |
| Feature (char type, unsigned int height, unsigned int width, unsigned int x, unsigned int y, long mfaces, long mnonfaces) | |
| virtual int | eval (Sample &sample) |
| long | computeWavelet (SampleImage &sam) |
| void | setP (int p) |
| void | setTheta (long theta) |
| void | save (ofstream &file) |
| void | print () |
Public Attributes | |
| long | mface |
| long | mnonface |
| char | type |
| unsigned int | height |
| unsigned int | width |
| unsigned int | x |
| unsigned int | y |
| int | p |
| long | theta |
|
||||||||||||||||||||||||||||||||
|
|
|
|
apply a feature to a sample |
|
|
Implements Heuristic. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
the height of the feature's box in pixles |
|
|
|
|
|
|
|
|
the parity indicates the direction of the inequality sign |
|
|
this is the threshold of the function |
|
|
the type of the feature |
|
|
the width of the feature's box in pixles |
|
|
the x location of the feature in pixles |
|
|
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002