VecClassifierICE.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * @file VecClassifierICE.h
  3. * @brief standard interface to ICE classifiers
  4. * @author Erik Rodner
  5. * @date 07.09.2007
  6. */
  7. #ifdef NICE_USELIB_ICE
  8. #ifndef VecClassifierICEINCLUDE
  9. #define VecClassifierICEINCLUDE
  10. #include <image_nonvis.h>
  11. #include <string>
  12. #include "vislearning/classifier/classifierbase/VecClassifier.h"
  13. namespace OBJREC {
  14. /** standard interface to ICE classifiers */
  15. class VecClassifierICE : public VecClassifier
  16. {
  17. protected:
  18. ice::Classifier *classifier;
  19. public:
  20. /** simple constructor */
  21. VecClassifierICE( const NICE::Config *conf,
  22. ice::Classifier *classifier );
  23. /** simple destructor */
  24. virtual ~VecClassifierICE();
  25. /** classify using simple vector */
  26. ClassificationResult classify ( const NICE::Vector & x ) const;
  27. /** classify using a simple vector */
  28. void teach ( const LabeledSetVector & teachSet );
  29. void clear ();
  30. void store ( std::ostream & os ) const;
  31. void restore ( std::istream & is );
  32. void finishTeaching();
  33. };
  34. } // namespace
  35. #endif
  36. #endif