12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- /**
- * @file LFWriteCache.h
- * @brief write local features to file
- * @author Erik Rodner
- * @date 02/14/2008
- */
- #ifndef LFWriteCacheINCLUDE
- #define LFWriteCacheINCLUDE
- #include <vislearning/nice.h>
-
- #include "LocalFeatureRepresentation.h"
- #include "core/basics/Config.h"
- namespace OBJREC {
- /** write local features to file */
- class LFWriteCache : public LocalFeatureRepresentation
- {
- protected:
- const LocalFeatureRepresentation *lfrep;
- std::string cachedir;
- int descFormat;
- int cachemode;
- public:
-
- /** simple constructor */
- LFWriteCache( const NICE::Config *conf,
- const LocalFeatureRepresentation *lfrep );
-
- /** simple destructor */
- virtual ~LFWriteCache();
-
- int getDescSize () const;
-
- /**
- * extract features for gray images
- * @param img input image
- * @param features output features
- * @param positions position of the features
- * @return
- */
- int extractFeatures ( const NICE::Image & img,
- NICE::VVector & features,
- NICE::VVector & positions ) const;
-
- /**
- * extract features for color images
- * @param img input image
- * @param features output features
- * @param positions position of the features
- * @return
- */
- int extractFeatures ( const NICE::ColorImage & img,
- NICE::VVector & features,
- NICE::VVector & positions ) const;
-
- void visualize ( NICE::Image & img,
- const NICE::Vector & feature ) const;
-
- void visualizeFeatures ( NICE::Image & mark,
- const NICE::VVector & positions,
- size_t color ) const;
- };
- } // namespace
- #endif
|