ImageFeatures.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "vislearning/cbaselib/FeaturePool.h"
  15. #include "core/basics/Config.h"
  16. namespace OBJREC {
  17. /** create feature pool and additional information for ImageFeatures */
  18. class ImageFeatures
  19. {
  20. protected:
  21. bool use_eoh_features;
  22. bool use_pixelpair_features;
  23. bool use_hog_features;
  24. bool use_haar_features;
  25. bool use_colorhistogram_features;
  26. const NICE::Config *conf;
  27. std::vector<Feature *> features;
  28. public:
  29. /** simple constructor */
  30. // refactor-nice.pl: check this substitution
  31. // old: ImageFeatures( const NICE::Config *conf, const std::string & section = "fpfeatures" );
  32. ImageFeatures( const NICE::Config *conf, const std::string & section = "fpfeatures" );
  33. /** simple destructor */
  34. virtual ~ImageFeatures();
  35. void fillFeaturePool ( FeaturePool & fp, bool variableWindow );
  36. void fillExample ( CachedExample *ce );
  37. };
  38. } // namespace
  39. #endif