LocalFeatureRGBSift.h 1.3 KB

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