HOGVectorFeatures.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "core/image/ImageT.h"
  12. #include "core/imagedisplay/ImageDisplay.h"
  13. #include "vislearning/features/fbase/FeatureFactory.h"
  14. #include "vislearning/baselib/FastFilter.h"
  15. namespace OBJREC {
  16. /** extract simple greyvalue features */
  17. class HOGVectorFeatures : public FeatureFactory
  18. {
  19. protected:
  20. /** @{ feature parameter */
  21. int numBins;
  22. bool usesigned;
  23. int amount_cell_x; // Amount of cells in x-Axis
  24. int amount_cell_y; // Amount of cells in y-Axis
  25. int block_x;
  26. int block_y;
  27. /** @} */
  28. public:
  29. /** simple constructor */
  30. HOGVectorFeatures ( const NICE::Config *conf, int _xsize = -1, int _ysize = -1);
  31. /** simple destructor */
  32. virtual ~HOGVectorFeatures ();
  33. /** convert image into hog feature vector */
  34. int convert ( const NICE::Image & img, NICE::Vector & vec );
  35. };
  36. } //namespace
  37. #endif