SemSegTools.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #ifdef NOVISUAL
  10. #include <objrec/nice_nonvis.h>
  11. #else
  12. #include <objrec/nice.h>
  13. #endif
  14. #include "objrec/baselib/Config.h"
  15. #include "objrec/cbaselib/MultiDataset.h"
  16. #include "objrec/cbaselib/Example.h"
  17. #include "objrec/cbaselib/CachedExample.h"
  18. namespace OBJREC {
  19. /** tools for semantic segmentation */
  20. class SemSegTools
  21. {
  22. protected:
  23. public:
  24. /** collect pixel-wise training examples
  25. from a set of images
  26. @param conf includes settings about grid size etc.
  27. @param section section of the config
  28. @param train set of training images with localization information
  29. @param cn classNames object
  30. @param examples resulting pixel-wise examples
  31. @param imgexamples image based caching structure referenced by pixel-wise examples
  32. */
  33. static void collectTrainingExamples (
  34. const Config * conf,
  35. const std::string & section,
  36. const LabeledSet & train,
  37. const ClassNames & cn,
  38. Examples & examples,
  39. vector<CachedExample *> & imgexamples );
  40. };
  41. } // namespace
  42. #endif