FCSet.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "vislearning/features/fbase/FeatureFactory.h"
  15. namespace OBJREC {
  16. /** combining features by vector concatenation */
  17. class FCSet : public FeatureFactory
  18. {
  19. protected:
  20. enum {
  21. NORMALIZE_N01 = 0,
  22. NORMALIZE_NONE,
  23. NORMALIZE_STDDEV,
  24. NORMALIZE_MEAN
  25. };
  26. int xsize;
  27. int ysize;
  28. int normalization;
  29. // refactor-nice.pl: check this substitution
  30. // old: Image tmp;
  31. NICE::Image tmp;
  32. std::vector<FeatureFactory * > featurefactoryvector;
  33. public:
  34. FCSet ( const NICE::Config *conf, int _xsize = -1, int _ysize = -1);
  35. virtual ~FCSet();
  36. void add(FeatureFactory *ff);
  37. // refactor-nice.pl: check this substitution
  38. // old: int convert ( const Image & img, Vector & vec );
  39. int convert ( const NICE::Image & img, NICE::Vector & vec );
  40. };
  41. } // namespace
  42. #endif