LocalFeatureRGBSift.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /**
  2. * @file LocalFeatureRGBSift.h
  3. * @brief local feature with color sift
  4. * @author Björn Fröhlich
  5. * @date 03/08/2010
  6. */
  7. #ifndef LocalFeatureRGBSiftINCLUDE
  8. #define LocalFeatureRGBSiftINCLUDE
  9. #include <vislearning/nice.h>
  10. #include "core/basics/Config.h"
  11. #include "vislearning/features/localfeatures/LocalFeatureSift.h"
  12. namespace OBJREC {
  13. /** local feature with sift */
  14. class LocalFeatureRGBSift : public LocalFeatureSift
  15. {
  16. protected:
  17. int octaves;
  18. int levels;
  19. bool normalizeFeature;
  20. int first_octave;
  21. double magnif;
  22. public:
  23. /** simple constructor */
  24. LocalFeatureRGBSift ( const NICE::Config *conf );
  25. /** simple destructor */
  26. virtual ~LocalFeatureRGBSift();
  27. /**
  28. * returns the size of each the SIFT-Feature
  29. * @return 128
  30. */
  31. int getDescSize() const { return 384; };
  32. /**
  33. * get the descriptor
  34. * @param img input color image
  35. * @param positions positions for the SIFT features
  36. * @param descriptors output
  37. * @return 0
  38. */
  39. virtual int getDescriptors ( const NICE::ColorImage & cimg,
  40. NICE::VVector & positions,
  41. NICE::VVector & descriptors ) const;
  42. };
  43. } // namespace
  44. #endif