123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * @file FCReadCache.h
- * @author Erik Rodner
- * @date 11/15/2007
- */
- #ifndef FCReadCacheINCLUDE
- #define FCReadCacheINCLUDE
- #ifdef NOVISUAL
- #include <vislearning/nice_nonvis.h>
- #else
- #include <vislearning/nice.h>
- #endif
-
- #include "vislearning/features/fbase/FeatureFactory.h"
- namespace OBJREC {
- class FCReadCache : public FeatureFactory
- {
- protected:
-
- enum {
- FEATURE_FORMAT_STANDARD = 0,
- FEATURE_FORMAT_SIMPLE
- };
- int feature_format;
- std::string cachedir;
- int cachemode;
-
- bool cache_debug;
- std::string extension;
-
- int readSimpleText ( std::ifstream & ifs, NICE::Vector & vec );
- public:
-
- /** simple constructor */
- FCReadCache ( const NICE::Config *conf );
-
- /** simple destructor */
- virtual ~FCReadCache();
-
- // refactor-nice.pl: check this substitution
- // old: int convert ( const Image & img, Vector & vec );
- int convert ( const NICE::Image & img, NICE::Vector & vec );
- };
- } // namespace
- #endif
|