FCSet.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /**
  2. * @file FCSet.h
  3. * @brief extract fourier domain value
  4. * @author Michael Koch
  5. * @date 5/27/2008
  6. */
  7. #ifndef FCSetINCLUDE
  8. #define FCSetINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "vislearning/features/fbase/FeatureFactory.h"
  12. namespace OBJREC {
  13. /** combining features by vector concatenation */
  14. class FCSet : public FeatureFactory
  15. {
  16. protected:
  17. enum {
  18. NORMALIZE_N01 = 0,
  19. NORMALIZE_NONE,
  20. NORMALIZE_STDDEV,
  21. NORMALIZE_MEAN
  22. };
  23. int xsize;
  24. int ysize;
  25. int normalization;
  26. // refactor-nice.pl: check this substitution
  27. // old: Image tmp;
  28. NICE::Image tmp;
  29. std::vector<FeatureFactory * > featurefactoryvector;
  30. public:
  31. FCSet ( const NICE::Config *conf, int _xsize = -1, int _ysize = -1);
  32. virtual ~FCSet();
  33. void add(FeatureFactory *ff);
  34. // refactor-nice.pl: check this substitution
  35. // old: int convert ( const Image & img, Vector & vec );
  36. int convert ( const NICE::Image & img, NICE::Vector & vec );
  37. };
  38. } // namespace
  39. #endif