IDKLTSampling.h 824 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #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 IDKLTSampling: public InterestDetector
  20. {
  21. protected:
  22. int numSamples;
  23. double minScale;
  24. bool fixedOrientation;
  25. public:
  26. IDKLTSampling(const NICE::Config *conf, int numSamples);
  27. virtual ~IDKLTSampling();
  28. int getInterests(const NICE::Image & img,
  29. std::vector<NICE::Vector> & positions) const;
  30. int getInterests(const ImagePyramid & imp,
  31. std::vector<NICE::Vector> & positions) const;
  32. };
  33. } // namespace
  34. #endif