12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /**
- * @file FeatureLearningGeneric.h
- * @brief abstract interface for feature learning algorithms
- * @author Alexander Freytag
- * @date 16-04-2013 (dd-mm-yyyy)
- */
- #ifndef _INCLUDEFEATURELEARNING
- #define _INCLUDEFEATURELEARNING
- #define ROADWORKS fthrow(NICE::Exception, "Feature Learning -- not yet implemented!");
- #include <string>
- #include <core/basics/Config.h>
- #include <vislearning/cbaselib/CachedExample.h>
- namespace OBJREC
- {
- /** abstract interface for feature learning algorithms */
- class FeatureLearningGeneric
- {
- protected:
-
- //! Configuration File
- const NICE::Config *conf;
-
- public:
- /** simple constructor
- @param conf global settings
- */
- FeatureLearningGeneric ( const NICE::Config *_conf );
- /** simple destructor */
- virtual ~FeatureLearningGeneric();
-
- //TODO possibly move this to protected...
- /** this function has to be overloaded by all subclasses
- @param imgWithNovelContent
- */
- virtual void learnNewFeatures ( OBJREC::CachedExample *_ce ) = 0;
- virtual void learnNewFeatures ( const std::string & _filename );
-
- virtual void evaluateCurrentCodebook ( const std::string & filename ) = 0;
-
- };
- } // namespace
- #endif
|