SemSegLocal.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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::ImageT<int> & segresult,
  29. NICE::MultiChannelImageT<double> & probabilities );
  30. void semanticseg ( CachedExample *ce,
  31. NICE::MultiChannelImageT<int> & segresult,
  32. NICE::MultiChannelImage3DT<double> & probabilities )
  33. {}
  34. };
  35. } // namespace
  36. #endif