LocalFeatureRGBSift.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 "vislearning/baselib/Config.h"
  10. #include "vislearning/features/localfeatures/LocalFeatureSift.h"
  11. #include "vislearning/features/localfeatures/sift.h"
  12. #ifdef NICE_USELIB_OPENMP
  13. #include <omp.h>
  14. #endif
  15. #include <iostream>
  16. namespace OBJREC {
  17. /** local feature with sift */
  18. class LocalFeatureRGBSift : public LocalFeatureSift
  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. LocalFeatureRGBSift ( const Config *conf );
  29. /** simple destructor */
  30. virtual ~LocalFeatureRGBSift();
  31. /**
  32. * returns the size of each the SIFT-Feature
  33. * @return 128
  34. */
  35. int getDescSize() const { return 384; };
  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. VVector & positions,
  45. VVector & descriptors ) const;
  46. };
  47. } // namespace
  48. #endif