FeatureLearningRegionBased.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * @file FeatureLearningRegionBased.h
  3. * @brief compute new histogram entries by extracting features from (moderately large) regions which have high novelty scores
  4. * @author Alexander Freytag
  5. * @date 17-04-2013 (dd-mm-yyyy)
  6. */
  7. #ifndef _INCLUDEFEATURELEARNINGREGIONBASED
  8. #define _INCLUDEFEATURELEARNINGREGIONBASED
  9. #include "FeatureLearningPrototypes.h"
  10. #include "segmentation/RegionSegmentationMethod.h"
  11. namespace OBJREC
  12. {
  13. /**
  14. * @class FeatureLearningRegionBased
  15. * @briefcompute new histogram entries by extracting features from (moderately large) regions which have high novelty scores
  16. * @author Alexander Freytag
  17. * @date 17-04-2013 (dd-mm-yyyy)
  18. */
  19. class FeatureLearningRegionBased : public FeatureLearningPrototypes
  20. {
  21. protected:
  22. /************************
  23. *
  24. * protected variables
  25. *
  26. **************************/
  27. //! low level Segmentation method
  28. RegionSegmentationMethod *segmentationAlgo;
  29. //! boolean whether to reuse segmentation results for single images in different runs
  30. bool reuseSegmentation;
  31. //! determine a grid on which we extract local features
  32. int i_gridSize;
  33. /************************
  34. *
  35. * protected methods
  36. *
  37. **************************/
  38. public:
  39. /** constructor
  40. * @param _conf needs a configfile
  41. * @param _md and a MultiDataset (contains images and other things)
  42. */
  43. FeatureLearningRegionBased ( const NICE::Config *_conf, const OBJREC::MultiDataset *_md , const std::string & _section = "featureLearning");
  44. /** simple destructor */
  45. virtual ~FeatureLearningRegionBased();
  46. /** this function has to be overloaded by all subclasses
  47. @param imgWithNovelContent
  48. */
  49. virtual void learnNewFeatures ( const std::string & filename );
  50. };
  51. } // namespace
  52. #endif