IDRandomSampling.h 818 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * @file IDRandomSampling.h
  3. * @brief random interest point sampling
  4. * @author Erik Rodner
  5. * @date 02/05/2008
  6. */
  7. #ifndef IDRANDOMSAMPLINGINCLUDE
  8. #define IDRANDOMSAMPLINGINCLUDE
  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 IDRandomSampling: public InterestDetector
  18. {
  19. protected:
  20. int numSamples;
  21. double minScale;
  22. public:
  23. IDRandomSampling(const NICE::Config *conf, int numSamples);
  24. virtual ~IDRandomSampling();
  25. int getInterests(const NICE::Image & img,
  26. std::vector<NICE::Vector> & positions) const;
  27. int getInterests(const ImagePyramid & imp,
  28. std::vector<NICE::Vector> & positions) const;
  29. };
  30. } // namespace
  31. #endif