1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /**
- * @file SemSegLocal.h
- * @brief semantic segmentation using image patches only
- * @author Erik Rodner
- * @date 05/08/2008
- */
- #ifndef SEMSEGLOCALINCLUDE
- #define SEMSEGLOCALINCLUDE
- #ifdef NOVISUAL
- #include <objrec/nice_nonvis.h>
- #else
- #include <objrec/nice.h>
- #endif
-
- #include "objrec/classifier/classifierbase/FeaturePoolClassifier.h"
- #include "SemanticSegmentation.h"
- namespace OBJREC {
- /** abstract interface for pixelwise localization systems */
- class SemSegLocal : public SemanticSegmentation
- {
- protected:
- bool save_cache;
- bool read_cache;
- // refactor-nice.pl: check this substitution
- // old: string cache;
- std::string cache;
- FeaturePoolClassifier *fpc;
- public:
-
- /** simple constructor */
- SemSegLocal( const Config *conf, const MultiDataset *md );
-
- /** simple destructor */
- virtual ~SemSegLocal();
- void train ( const Config *conf, const MultiDataset *md );
- void semanticseg ( CachedExample *ce,
- // refactor-nice.pl: check this substitution
- // old: Image & segresult,
- NICE::Image & segresult,
- GenericImage<double> & probabilities );
- };
- } // namespace
- #endif
|