LFGenericLocal.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @file LFGenericLocal.h
  3. * @brief generic local features
  4. * @author Erik Rodner
  5. * @date 02/05/2008
  6. */
  7. #ifndef LFGENERICLOCALINCLUDE
  8. #define LFGENERICLOCALINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "core/basics/Config.h"
  15. #include "LocalFeatureRepresentation.h"
  16. #include "InterestDetector.h"
  17. #include "LocalFeature.h"
  18. namespace OBJREC {
  19. /** generic local features */
  20. class LFGenericLocal : public LocalFeatureRepresentation
  21. {
  22. protected:
  23. LocalFeature *lf;
  24. InterestDetector *id;
  25. public:
  26. /** simple constructor */
  27. LFGenericLocal( const NICE::Config *conf, int numFeatures );
  28. /** simple destructor */
  29. virtual ~LFGenericLocal();
  30. int getDescSize () const;
  31. int extractFeatures ( const NICE::Image & img,
  32. NICE::VVector & features,
  33. NICE::VVector & positions) const;
  34. void visualizeFeatures ( NICE::Image & mark,
  35. const NICE::VVector & positions,
  36. size_t color ) const;
  37. };
  38. } // namespace
  39. #endif