LocalFeatureOpponnentSift.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 <vislearning/nice.h>
  10. #include "core/basics/Config.h"
  11. #include "vislearning/features/localfeatures/LocalFeatureRGBSift.h"
  12. namespace OBJREC
  13. {
  14. /** local feature with sift */
  15. class LocalFeatureOpponnentSift : public LocalFeatureRGBSift
  16. {
  17. protected:
  18. int octaves;
  19. int levels;
  20. bool normalizeFeature;
  21. int first_octave;
  22. double magnif;
  23. public:
  24. /** simple constructor */
  25. LocalFeatureOpponnentSift(const NICE::Config *conf);
  26. /** simple destructor */
  27. virtual ~LocalFeatureOpponnentSift();
  28. /**
  29. * get the descriptor
  30. * @param img input image
  31. * @param positions positions for the SIFT features
  32. * @param descriptors output
  33. * @return 0
  34. */
  35. int getDescriptors(const NICE::ColorImage & cimg, NICE::VVector & positions, NICE::VVector & descriptors) const;
  36. };
  37. } // namespace
  38. #endif