SemSegLocal.h 908 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. /** abstract interface for pixelwise localization systems */
  13. class SemSegLocal : public SemanticSegmentation
  14. {
  15. protected:
  16. bool save_cache;
  17. bool read_cache;
  18. std::string cache;
  19. FeaturePoolClassifier *fpc;
  20. public:
  21. /** simple constructor */
  22. SemSegLocal( const Config *conf, const MultiDataset *md );
  23. /** simple destructor */
  24. virtual ~SemSegLocal();
  25. void train ( const Config *conf, const MultiDataset *md );
  26. void semanticseg ( CachedExample *ce,
  27. NICE::Image & segresult,
  28. NICE::MultiChannelImageT<double> & probabilities );
  29. };
  30. } // namespace
  31. #endif