LocalFeature.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /**
  2. * @file LocalFeature.h
  3. * @brief Abstract class for Local Features ( ONLY DESCRIPTORS, NO DETECTORS )
  4. * @author Erik Rodner, Alexander Freytag
  5. * @date 02/05/2008
  6. */
  7. #ifndef LOCALFEATUREINCLUDE
  8. #define LOCALFEATUREINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/image/ImageT.h"
  12. #include "core/vector/VVector.h"
  13. namespace OBJREC {
  14. /** @class LocalFeature
  15. * @brief Abstract class for Local Features ( ONLY DESCRIPTORS, NO DETECTORS )
  16. *
  17. */
  18. class LocalFeature
  19. {
  20. protected:
  21. public:
  22. /** simple constructor */
  23. LocalFeature();
  24. /** simple destructor */
  25. virtual ~LocalFeature();
  26. virtual int getDescSize() const = 0;
  27. virtual int getDescriptors ( const NICE::Image & img, NICE::VVector & positions, NICE::VVector & descriptors) const = 0;
  28. virtual int getDescriptors ( const NICE::ColorImage & img, NICE::VVector & positions, NICE::VVector & descriptors) const;
  29. virtual void visualizeFeatures ( NICE::Image & mark,
  30. const NICE::VVector & positions,
  31. size_t color ) const;
  32. };
  33. } // namespace
  34. #endif