LocalFeatureRepresentation.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /**
  2. * @file LocalFeatureRepresentation.h
  3. * @brief absract class for the representation of an image with local feature descriptors
  4. * @author Erik Rodner
  5. * @date 11/19/2007
  6. */
  7. #ifndef LOCALFEATUREREPRESENTATIONINCLUDE
  8. #define LOCALFEATUREREPRESENTATIONINCLUDE
  9. #include "core/imagedisplay/ImageDisplay.h"
  10. #include "core/vector/VectorT.h"
  11. #include "core/vector/MatrixT.h"
  12. #include "core/image/ImageT.h"
  13. #include <vector>
  14. #include "core/vector/VVector.h"
  15. namespace OBJREC {
  16. /** absract class for the representation of an image with local feature descriptors */
  17. class LocalFeatureRepresentation
  18. {
  19. protected:
  20. public:
  21. /** simple constructor */
  22. LocalFeatureRepresentation();
  23. /** simple destructor */
  24. virtual ~LocalFeatureRepresentation();
  25. virtual int getDescSize () const = 0;
  26. virtual int extractFeatures ( const NICE::Image & img,
  27. NICE::VVector & features,
  28. NICE::VVector & positions ) const = 0;
  29. virtual int extractFeatures ( const NICE::ColorImage & img,
  30. NICE::VVector & features,
  31. NICE::VVector & positions ) const;
  32. virtual void visualizeFeatures ( NICE::Image & mark,
  33. const NICE::VVector & positions,
  34. size_t color ) const;
  35. virtual void visualize ( NICE::Image & img,
  36. const NICE::Vector & feature ) const;
  37. };
  38. } // namespace
  39. #endif