FCReadCache.h 958 B

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