123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- #ifndef SEMSEGOBLIQUETEEINCLUDE
- #define SEMSEGOBLIQUETEEINCLUDE
- #include "vislearning/classifier/classifierbase/FeaturePoolClassifier.h"
- #include "SemanticSegmentation.h"
- namespace OBJREC
- {
- class SemSegObliqueTree : public SemanticSegmentation
- {
- private:
-
- const NICE::Config *conf;
-
- bool saveLoadData;
-
- int colorMode;
-
- std::string fileLocation;
-
- FeaturePoolClassifier *fpc;
-
- void preprocessChannels ( CachedExample *ce, bool isColor ) const;
- public:
-
- SemSegObliqueTree ();
-
- SemSegObliqueTree (
- const NICE::Config *conf,
- const ClassNames *classNames );
-
- virtual ~SemSegObliqueTree();
-
- void initFromConfig (
- const NICE::Config *_conf,
- const std::string & s_confSection = "SemSegObliqueTree" );
-
- void train ( const MultiDataset *md );
-
- void semanticseg ( CachedExample *ce,
- NICE::ImageT<int> &segresult,
- NICE::MultiChannelImageT<double> &probabilities );
-
- void semanticseg ( OBJREC::CachedExample *ce,
- NICE::MultiChannelImageT<int> & segresult,
- NICE::MultiChannelImage3DT<double> & probabilities );
-
-
-
-
- virtual void restore ( std::istream & is, int format = 0 );
-
- virtual void store( std::ostream & os, int format = 0 ) const;
-
- virtual void clear ();
- };
- }
- #endif
|