/** * @file FPCnone.h * @brief bad hack, not realy a classifier, returns the first values as classification result * @author Björn Fröhlich * @date 18/06/2010 */ #ifndef FPCnoneDEF #define FPCnoneDEF #include #include "vislearning/classifier/classifierbase/FeaturePoolClassifier.h" #include "vislearning/classifier/fpclassifier/logisticregression/SLR.h" #include "vislearning/cbaselib/FeaturePool.h" namespace OBJREC { class FPCnone : public FeaturePoolClassifier { protected: //! the featurepool FeaturePool fp; //! config file; const Config *conf; public: /** * standard constructor * @param conf configfile * @param section section name in configfile for classifier */ FPCnone( const Config *conf, std::string section="SMLR"); /** * simple constructor -> does nothing */ FPCnone (); /** * simple destructor */ ~FPCnone(); /** * main classification function * @param pce input feature * @return a classification result */ ClassificationResult classify ( Example & pce ); /** * start training * @param fp a featurepool (how to handle which features...) * @param examples input features */ void train ( FeaturePool & _fp, Examples & examples ); /** * clone this object * @return a copy of this object */ FeaturePoolClassifier *clone () const; /** * set complexity for the next training process e.g. number of weak classifiers * @param size new complexity */ void setComplexity ( int size ); /** IO functions */ void restore (std::istream & is, int format = 0); void store (std::ostream & os, int format = 0) const; void clear (); }; } // namespace #endif