LocalFeatureLFInterface.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * @file LocalFeatureLFInterface.h
  3. * @brief interface to LF
  4. * @author Björn Fröhlich
  5. * @date 09/07/2010
  6. */
  7. #ifndef LocalFeatureLFInterfaceINCLUDE
  8. #define LocalFeatureLFInterfaceINCLUDE
  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 "LocalFeature.h"
  14. #include "LocalFeatureRepresentation.h"
  15. namespace OBJREC {
  16. /** local feature with LF */
  17. class LocalFeatureLFInterface : public LocalFeature
  18. {
  19. protected:
  20. LocalFeatureRepresentation *lfpres;
  21. public:
  22. /** simple constructor */
  23. LocalFeatureLFInterface ( const NICE::Config *conf, LocalFeatureRepresentation *_lfpres );
  24. /** simple destructor */
  25. virtual ~LocalFeatureLFInterface();
  26. /**
  27. * returns the size of each the SIFT-Feature
  28. * @return 128
  29. */
  30. int getDescSize() const { return lfpres->getDescSize(); };
  31. /**
  32. * get the descriptor
  33. * @param img input image
  34. * @param positions positions for the SIFT features
  35. * @param descriptors output
  36. * @return 0
  37. */
  38. int getDescriptors ( const NICE::Image & img, NICE::VVector & positions, NICE::VVector & descriptors ) const;
  39. /**
  40. * get the descriptor
  41. * @param img input color image
  42. * @param positions positions for the SIFT features
  43. * @param descriptors output
  44. * @return 0
  45. */
  46. int getDescriptors ( const NICE::ColorImage & img, NICE::VVector & positions, NICE::VVector & descriptors) const;
  47. void visualizeFeatures ( NICE::Image & mark, const NICE::VVector & positions, size_t color ) const;
  48. };
  49. } // namespace
  50. #endif