FCBagSift.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @file FCBagSift.h
  3. * @brief Feature Factory for Bag of SIFT Features
  4. * @author Erik Rodner
  5. * @date 10/25/2007
  6. */
  7. #ifndef FCBAGSIFTINCLUDE
  8. #define FCBAGSIFTINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "vislearning/math/cluster/GenerateSignature.h"
  15. #include "vislearning/features/localfeatures/LocalFeatureRepresentation.h"
  16. #include "vislearning/features/fbase/FeatureFactory.h"
  17. namespace OBJREC {
  18. /** Feature Factory for Bag of SIFT Features */
  19. class FCBagSift : public FeatureFactory
  20. {
  21. protected:
  22. bool display_features;
  23. GenerateSignature *gs;
  24. const LocalFeatureRepresentation *lfrep;
  25. public:
  26. /** simple constructor */
  27. FCBagSift( const NICE::Config *conf, const LocalFeatureRepresentation *_lfrep );
  28. /** simple destructor */
  29. virtual ~FCBagSift();
  30. // refactor-nice.pl: check this substitution
  31. // old: int convert ( const Image & img, Vector & vec );
  32. int convert ( const NICE::Image & img, NICE::Vector & vec );
  33. };
  34. } // namespace
  35. #endif