LocalFeature.h 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * @file LocalFeature.h
  3. * @brief local feature interface
  4. * @author Erik Rodner
  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. /** local feature interface */
  15. class LocalFeature
  16. {
  17. protected:
  18. public:
  19. /** simple constructor */
  20. LocalFeature();
  21. /** simple destructor */
  22. virtual ~LocalFeature();
  23. virtual int getDescSize() const = 0;
  24. virtual int getDescriptors ( const NICE::Image & img, NICE::VVector & positions, NICE::VVector & descriptors) const = 0;
  25. virtual int getDescriptors ( const NICE::ColorImage & img, NICE::VVector & positions, NICE::VVector & descriptors) const;
  26. virtual void visualizeFeatures ( NICE::Image & mark,
  27. const NICE::VVector & positions,
  28. size_t color ) const;
  29. };
  30. } // namespace
  31. #endif