SemSegLocal.h 969 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * @file SemSegLocal.h
  3. * @brief semantic segmentation using image patches only
  4. * @author Erik Rodner
  5. * @date 05/08/2008
  6. */
  7. #ifndef SEMSEGLOCALINCLUDE
  8. #define SEMSEGLOCALINCLUDE
  9. #include "vislearning/classifier/classifierbase/FeaturePoolClassifier.h"
  10. #include "SemanticSegmentation.h"
  11. namespace OBJREC
  12. {
  13. /** abstract interface for pixelwise localization systems */
  14. class SemSegLocal : public SemanticSegmentation
  15. {
  16. protected:
  17. bool save_cache;
  18. bool read_cache;
  19. std::string cache;
  20. FeaturePoolClassifier *fpc;
  21. public:
  22. /** simple constructor */
  23. SemSegLocal ( const NICE::Config *conf, const MultiDataset *md );
  24. /** simple destructor */
  25. virtual ~SemSegLocal();
  26. void train ( const NICE::Config *conf, const MultiDataset *md );
  27. void semanticseg ( CachedExample *ce,
  28. NICE::Image & segresult,
  29. NICE::MultiChannelImageT<double> & probabilities );
  30. };
  31. } // namespace
  32. #endif