IDRandomSampling.h 893 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /** @class IDRandomSampling
  17. * @brief random interest point sampling
  18. */
  19. class IDRandomSampling: public InterestDetector
  20. {
  21. protected:
  22. int numSamples;
  23. double minScale;
  24. public:
  25. IDRandomSampling(const NICE::Config *conf, int numSamples);
  26. virtual ~IDRandomSampling();
  27. int getInterests(const NICE::Image & img,
  28. std::vector<NICE::Vector> & positions) const;
  29. int getInterests(const ImagePyramid & imp,
  30. std::vector<NICE::Vector> & positions) const;
  31. };
  32. } // namespace
  33. #endif