IDSIFTSampling.h 916 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #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 "InterestDetector.h"
  14. namespace OBJREC
  15. {
  16. /** random interest point sampling */
  17. class IDSIFTSampling: public InterestDetector
  18. {
  19. protected:
  20. double minScale;
  21. float threshold;
  22. float edgeThreshold;
  23. bool fixedOrientation;
  24. int octaves;
  25. int levels;
  26. int first_octave;
  27. double magnif;
  28. bool deletemode;
  29. public:
  30. IDSIFTSampling(const NICE::Config *conf);
  31. virtual ~IDSIFTSampling();
  32. int getInterests(const NICE::Image & img,
  33. std::vector<NICE::Vector> & positions) const;
  34. int getInterests(const ImagePyramid & imp,
  35. std::vector<NICE::Vector> & positions) const;
  36. };
  37. } // namespace
  38. #endif