/** * @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 #include #include 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