123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef MULTIDATASETINCLUDE
- #define MULTIDATASETINCLUDE
- #include <string>
- #include <map>
- #include <core/basics/Config.h>
- #include "LabeledSetSelection.h"
- #include "LabeledFileList.h"
- #include "LabeledSet.h"
- #include "ClassNames.h"
- namespace OBJREC {
- class MultiDataset
- {
- protected:
- LabeledFileList lfl;
- std::map<std::string, ClassNames> classnames;
- std::map<std::string, LabeledSet> datasets;
- void selectExamples ( const std::string & examples_command,
- const LabeledSet & base,
- LabeledSet & positives,
- LabeledSet & negatives,
- const ClassNames & cn ) const;
- public:
-
-
- MultiDataset( const NICE::Config *conf );
-
-
- virtual ~MultiDataset();
-
- const ClassNames & getClassNames ( const std::string & key ) const;
-
- const LabeledSet * operator[] ( const std::string & key ) const;
- const LabeledSet * at ( const std::string & key ) const;
- };
- }
- #endif
|