HOGVectorFeatures.h 941 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * @file HOGVectorFeatures.h
  3. * @brief extract hog features
  4. * @author Alexander Arest
  5. * @date 06/08/2009
  6. */
  7. #ifndef HOGVECTORFEATURESINCLUDE
  8. #define HOGVECTORFEATURESINCLUDE
  9. #include "vislearning/features/fbase/FeatureFactory.h"
  10. #include "vislearning/baselib/FastFilter.h"
  11. namespace OBJREC {
  12. /** extract simple greyvalue features */
  13. class HOGVectorFeatures : public FeatureFactory
  14. {
  15. protected:
  16. /** @{ feature parameter */
  17. int numBins;
  18. bool usesigned;
  19. int amount_cell_x; // Amount of cells in x-Axis
  20. int amount_cell_y; // Amount of cells in y-Axis
  21. int block_x;
  22. int block_y;
  23. /** @} */
  24. public:
  25. /** simple constructor */
  26. HOGVectorFeatures ( const NICE::Config *conf, int _xsize = -1, int _ysize = -1);
  27. /** simple destructor */
  28. virtual ~HOGVectorFeatures ();
  29. /** convert image into hog feature vector */
  30. int convert ( const NICE::Image & img, NICE::Vector & vec );
  31. };
  32. } //namespace
  33. #endif