IDSIFTSampling.h 915 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file IDSIFTSampling.h
  3. * @brief random interest point sampling
  4. * @author Erik Rodner
  5. * @date 02/05/2008
  6. */
  7. #ifndef IDSIFTSamplingINCLUDE
  8. #define IDSIFTSamplingINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "core/basics/Config.h"
  15. #include "InterestDetector.h"
  16. namespace OBJREC
  17. {
  18. /** random interest point sampling */
  19. class IDSIFTSampling: public InterestDetector
  20. {
  21. protected:
  22. double minScale;
  23. float threshold;
  24. float edgeThreshold;
  25. bool fixedOrientation;
  26. int octaves;
  27. int levels;
  28. int first_octave;
  29. double magnif;
  30. bool deletemode;
  31. public:
  32. IDSIFTSampling(const NICE::Config *conf);
  33. virtual ~IDSIFTSampling();
  34. int getInterests(const NICE::Image & img,
  35. std::vector<NICE::Vector> & positions) const;
  36. int getInterests(const ImagePyramid & imp,
  37. std::vector<NICE::Vector> & positions) const;
  38. };
  39. } // namespace
  40. #endif