ImageFeatures.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * @file ImageFeatures.h
  3. * @brief create feature pool and additional information for ImageFeatures
  4. * @author Erik Rodner
  5. * @date 07/24/2008
  6. */
  7. #ifndef IMAGEFEATURESINCLUDE
  8. #define IMAGEFEATURESINCLUDE
  9. #include "core/vector/VectorT.h"
  10. #include "core/vector/MatrixT.h"
  11. #include "vislearning/cbaselib/FeaturePool.h"
  12. #include "core/basics/Config.h"
  13. namespace OBJREC {
  14. /** create feature pool and additional information for ImageFeatures */
  15. class ImageFeatures
  16. {
  17. protected:
  18. bool use_eoh_features;
  19. bool use_pixelpair_features;
  20. bool use_hog_features;
  21. bool use_haar_features;
  22. bool use_colorhistogram_features;
  23. const NICE::Config *conf;
  24. std::vector<Feature *> features;
  25. public:
  26. /** simple constructor */
  27. // refactor-nice.pl: check this substitution
  28. // old: ImageFeatures( const NICE::Config *conf, const std::string & section = "fpfeatures" );
  29. ImageFeatures( const NICE::Config *conf, const std::string & section = "fpfeatures" );
  30. /** simple destructor */
  31. virtual ~ImageFeatures();
  32. void fillFeaturePool ( FeaturePool & fp, bool variableWindow );
  33. void fillExample ( CachedExample *ce );
  34. };
  35. } // namespace
  36. #endif