LFGenericLocal.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/image/ImageT.h"
  12. #include "core/basics/Config.h"
  13. #include "LocalFeatureRepresentation.h"
  14. #include "InterestDetector.h"
  15. #include "LocalFeature.h"
  16. namespace OBJREC {
  17. /** generic local features */
  18. class LFGenericLocal : public LocalFeatureRepresentation
  19. {
  20. protected:
  21. LocalFeature *lf;
  22. InterestDetector *id;
  23. public:
  24. /** simple constructor */
  25. LFGenericLocal( const NICE::Config *conf, int numFeatures );
  26. /** simple destructor */
  27. virtual ~LFGenericLocal();
  28. int getDescSize () const;
  29. int extractFeatures ( const NICE::Image & img,
  30. NICE::VVector & features,
  31. NICE::VVector & positions) const;
  32. void visualizeFeatures ( NICE::Image & mark,
  33. const NICE::VVector & positions,
  34. size_t color ) const;
  35. };
  36. } // namespace
  37. #endif