#include <stlrecogniser.h>
Inheritance diagram for StlRecogniser:

Public Member Functions | |
| StlRecogniser () | |
| ~StlRecogniser () | |
| virtual const std::string & | key () const |
| virtual const std::string & | title () const |
| virtual const std::string & | description () const |
| const map< string, string > & | defaultParams () const |
| bool | initTraining (const list< string > &featureKeys, const map< string, string > ¶ms) |
| bool | examineSample (const StlFeatureVec &featureVec, const set< int > &classes) |
| bool | finaliseTraining () |
| bool | writeModelFile (const string &fileName) |
| bool | readModelFile (const string &fileName) |
| StlStroke | flatten (const StlStrokeList &strokes) |
| StlClassProbabilities | classify (const StlFeatureVec &featureVec) |
Static Public Member Functions | |
| static const std::string & | classKey () |
| static const std::string & | classTitle () |
| static const std::string & | classDescription () |
| StlRecogniser::StlRecogniser | ( | ) |
| StlRecogniser::~StlRecogniser | ( | ) |
| static const std::string& StlRecogniser::classKey | ( | ) | [inline, static] |
| virtual const std::string& StlRecogniser::key | ( | ) | const [inline, virtual] |
Implements StlRecogniserInterface.
| static const std::string& StlRecogniser::classTitle | ( | ) | [inline, static] |
| virtual const std::string& StlRecogniser::title | ( | ) | const [inline, virtual] |
Implements StlRecogniserInterface.
| static const std::string& StlRecogniser::classDescription | ( | ) | [inline, static] |
| virtual const std::string& StlRecogniser::description | ( | ) | const [inline, virtual] |
Implements StlRecogniserInterface.
| const map< string, string > & StlRecogniser::defaultParams | ( | ) | const [virtual] |
Implements StlRecogniserInterface.
| bool StlRecogniser::initTraining | ( | const list< string > & | featureKeys, | |
| const map< string, string > & | params | |||
| ) |
| bool StlRecogniser::examineSample | ( | const StlFeatureVec & | featureVec, | |
| const set< int > & | classes | |||
| ) |
| bool StlRecogniser::finaliseTraining | ( | ) | [virtual] |
Implements StlRecogniserInterface.
| bool StlRecogniser::writeModelFile | ( | const string & | fileName | ) |
| bool StlRecogniser::readModelFile | ( | const string & | fileName | ) |
| StlStroke StlRecogniser::flatten | ( | const StlStrokeList & | strokes | ) | [virtual] |
This is used to flatten/link/join/merge a (potentially) multi-stroke gesture before feature extraction is performed (and thus examination or classification).
If any filtering needs to be performed on the stroke(s), then it should be done by this method. This includes smoothing the stroke(s) or even reducing the number of points in them.
This default implementation simply joins all of the strokes together. It does not join strokes together based on the location of their start and end points.
Note: This is non-const, as the recogniser may need to examine the stroke's structure and record information about it, ready for use by either classify() or examineSample().
Reimplemented from StlRecogniserInterface.
| StlClassProbabilities StlRecogniser::classify | ( | const StlFeatureVec & | featureVec | ) | [virtual] |
Implements StlRecogniserInterface.
1.5.2