#include "../FeatureContainer/FeatureContainer.h"
Go to the source code of this file.
Classes | |
class | ClassifierAlgorithm |
class | Classifier |
#define | CLASSIFIER_EXPORT FEATURE_EXPORT |
#define | CLASSIFIER_EXPORT_CLASS FEATURE_EXPORT_CLASS |
Defines | |
#define | EXPORT_CLASSIFIER(classifier) |
Typedefs | |
typedef parametermap | classifierparams |
typedef ClassifierAlgorithm *(* | getClassifier_t )(const classifierparams ¶ms) |
© 2003-2004 by Rene Mayrhofer, Harald Radi
Harald Radi <harald.radi@nme.at>
|
compiler specific flags to export functions and classes |
|
Value: \ static classifier *clf; \ void INIT_EXPORT library_initialize() { clf = NULL; } \ void FINI_EXPORT library_finalize() { if (clf != NULL) delete clf; } \ \ extern "C" CLASSIFIER_EXPORT ClassifierAlgorithm* getClassifier(classifierparams ¶ms) { if (clf == NULL) clf = new classifier(params); return clf; } This macro has to be used in global scope and gets substituted with the implementation for exporting a ClassifierAlgorithm singleton instance to the framework.
|
|
Parameters passed to classifiers When initializing a classifier, an arbitrary number of named (string) parameters can be passed from the application (e.g. read from a config file). These key-value tuples can then be used by the classifier as configuration or initialization values. They are completely classifier specific.
|
|
Type of the getClassifier function This type definition is needed by the Classifier Wrapper to query a ClassifierAlgorithm implementation for an instance of its class. |