IDKLTSampling.h 825 B

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