FCGreyValues.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * @file FCGreyValues.h
  3. * @brief extract simple greyvalue features
  4. * @author Erik Rodner
  5. * @date 11/15/2007
  6. */
  7. #ifndef FCGREYVALUESINCLUDE
  8. #define FCGREYVALUESINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "vislearning/features/fbase/FeatureFactory.h"
  12. namespace OBJREC {
  13. /** extract simple greyvalue features */
  14. class FCGreyValues : 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. public:
  30. /** simple constructor */
  31. FCGreyValues ( const NICE::Config *conf, int _xsize = -1, int _ysize = -1);
  32. /** simple destructor */
  33. virtual ~FCGreyValues();
  34. /** convert image into feature vector with simple grayvalues */
  35. // refactor-nice.pl: check this substitution
  36. // old: int convert ( const Image & img, Vector & vec );
  37. int convert ( const NICE::Image & img, NICE::Vector & vec );
  38. };
  39. } // namespace
  40. #endif