SemSegTools.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * @file SemSegTools.h
  3. * @brief tools for semantic segmentation
  4. * @author Erik Rodner
  5. * @date 03/19/2009
  6. */
  7. #ifndef SEMSEGTOOLSINCLUDE
  8. #define SEMSEGTOOLSINCLUDE
  9. #include "core/basics/Config.h"
  10. #include "vislearning/cbaselib/MultiDataset.h"
  11. #include "vislearning/cbaselib/Example.h"
  12. #include "vislearning/cbaselib/CachedExample.h"
  13. namespace OBJREC
  14. {
  15. /** tools for semantic segmentation */
  16. class SemSegTools
  17. {
  18. protected:
  19. public:
  20. /** collect pixel-wise training examples
  21. from a set of images
  22. @param conf includes settings about grid size etc.
  23. @param section section of the config
  24. @param train set of training images with localization information
  25. @param cn classNames object
  26. @param examples resulting pixel-wise examples
  27. @param imgexamples image based caching structure referenced by pixel-wise examples
  28. */
  29. static void collectTrainingExamples (
  30. const NICE::Config * conf,
  31. const std::string & section,
  32. const LabeledSet & train,
  33. const ClassNames & cn,
  34. Examples & examples,
  35. std::vector<CachedExample *> & imgexamples );
  36. };
  37. } // namespace
  38. #endif