LFGenericLocal.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @file LFGenericLocal.h
  3. * @brief generic local features ( Random Sampling of POIs and SIFT as descriptor)
  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
  19. * @brief Generic local features ( actually: Random Sampling of POIs followed by SIFT as descriptor)
  20. */
  21. class LFGenericLocal : public LocalFeatureRepresentation
  22. {
  23. protected:
  24. LocalFeature *lf;
  25. InterestDetector *id;
  26. public:
  27. /** simple constructor */
  28. LFGenericLocal( const NICE::Config *conf, int numFeatures );
  29. /** simple destructor */
  30. virtual ~LFGenericLocal();
  31. int getDescSize () const;
  32. int extractFeatures ( const NICE::Image & img,
  33. NICE::VVector & features,
  34. NICE::VVector & positions) const;
  35. void visualizeFeatures ( NICE::Image & mark,
  36. const NICE::VVector & positions,
  37. size_t color ) const;
  38. };
  39. } // namespace
  40. #endif