SemSegLocal.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. #ifdef NOVISUAL
  10. #include <objrec/nice_nonvis.h>
  11. #else
  12. #include <objrec/nice.h>
  13. #endif
  14. #include "objrec/classifier/classifierbase/FeaturePoolClassifier.h"
  15. #include "SemanticSegmentation.h"
  16. namespace OBJREC {
  17. /** abstract interface for pixelwise localization systems */
  18. class SemSegLocal : public SemanticSegmentation
  19. {
  20. protected:
  21. bool save_cache;
  22. bool read_cache;
  23. // refactor-nice.pl: check this substitution
  24. // old: string cache;
  25. std::string cache;
  26. FeaturePoolClassifier *fpc;
  27. public:
  28. /** simple constructor */
  29. SemSegLocal( const Config *conf, const MultiDataset *md );
  30. /** simple destructor */
  31. virtual ~SemSegLocal();
  32. void train ( const Config *conf, const MultiDataset *md );
  33. void semanticseg ( CachedExample *ce,
  34. // refactor-nice.pl: check this substitution
  35. // old: Image & segresult,
  36. NICE::Image & segresult,
  37. GenericImage<double> & probabilities );
  38. };
  39. } // namespace
  40. #endif