LocalFeatureOpponnentSift.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * @file LocalFeatureOpponnentSift.h
  3. * @brief local feature with color sift
  4. * @author Björn Fröhlich
  5. * @date 03/08/2010
  6. */
  7. #ifndef LocalFeatureOpponnentSiftINCLUDE
  8. #define LocalFeatureOpponnentSiftINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/image/ImageT.h"
  12. #include "core/imagedisplay/ImageDisplay.h"
  13. #include "core/basics/Config.h"
  14. #include "vislearning/features/localfeatures/LocalFeatureRGBSift.h"
  15. namespace OBJREC
  16. {
  17. /** local feature with sift */
  18. class LocalFeatureOpponnentSift : public LocalFeatureRGBSift
  19. {
  20. protected:
  21. int octaves;
  22. int levels;
  23. bool normalizeFeature;
  24. int first_octave;
  25. double magnif;
  26. public:
  27. /** simple constructor */
  28. LocalFeatureOpponnentSift ( const NICE::Config *conf );
  29. /** simple destructor */
  30. virtual ~LocalFeatureOpponnentSift();
  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::ColorImage & cimg, NICE::VVector & positions, NICE::VVector & descriptors ) const;
  39. };
  40. } // namespace
  41. #endif