FCBagSift.h 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "vislearning/math/cluster/GenerateSignature.h"
  12. #include "vislearning/features/localfeatures/LocalFeatureRepresentation.h"
  13. #include "vislearning/features/fbase/FeatureFactory.h"
  14. namespace OBJREC {
  15. /** Feature Factory for Bag of SIFT Features */
  16. class FCBagSift : public FeatureFactory
  17. {
  18. protected:
  19. bool display_features;
  20. GenerateSignature *gs;
  21. const LocalFeatureRepresentation *lfrep;
  22. public:
  23. /** simple constructor */
  24. FCBagSift( const NICE::Config *conf, const LocalFeatureRepresentation *_lfrep );
  25. /** simple destructor */
  26. virtual ~FCBagSift();
  27. // refactor-nice.pl: check this substitution
  28. // old: int convert ( const Image & img, Vector & vec );
  29. int convert ( const NICE::Image & img, NICE::Vector & vec );
  30. };
  31. } // namespace
  32. #endif