SemSegTools.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /** tools for semantic segmentation */
  15. class SemSegTools
  16. {
  17. protected:
  18. public:
  19. /** collect pixel-wise training examples
  20. from a set of images
  21. @param conf includes settings about grid size etc.
  22. @param section section of the config
  23. @param train set of training images with localization information
  24. @param cn classNames object
  25. @param examples resulting pixel-wise examples
  26. @param imgexamples image based caching structure referenced by pixel-wise examples
  27. */
  28. static void collectTrainingExamples (
  29. const Config * conf,
  30. const std::string & section,
  31. const LabeledSet & train,
  32. const ClassNames & cn,
  33. Examples & examples,
  34. std::vector<CachedExample *> & imgexamples );
  35. };
  36. } // namespace
  37. #endif