FCReadCache.h 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @file FCReadCache.h
  3. * @author Erik Rodner
  4. * @date 11/15/2007
  5. */
  6. #ifndef FCReadCacheINCLUDE
  7. #define FCReadCacheINCLUDE
  8. #include "core/vector/VectorT.h"
  9. #include "core/vector/MatrixT.h"
  10. #include "vislearning/features/fbase/FeatureFactory.h"
  11. namespace OBJREC {
  12. class FCReadCache : public FeatureFactory
  13. {
  14. protected:
  15. enum {
  16. FEATURE_FORMAT_STANDARD = 0,
  17. FEATURE_FORMAT_SIMPLE
  18. };
  19. int feature_format;
  20. std::string cachedir;
  21. int cachemode;
  22. bool cache_debug;
  23. std::string extension;
  24. int readSimpleText ( std::ifstream & ifs, NICE::Vector & vec );
  25. public:
  26. /** simple constructor */
  27. FCReadCache ( const NICE::Config *conf );
  28. /** simple destructor */
  29. virtual ~FCReadCache();
  30. // refactor-nice.pl: check this substitution
  31. // old: int convert ( const Image & img, Vector & vec );
  32. int convert ( const NICE::Image & img, NICE::Vector & vec );
  33. };
  34. } // namespace
  35. #endif