1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef MULTIDATASETINCLUDE
- #define MULTIDATASETINCLUDE
- #include <string>
- #include <map>
- #include <core/basics/Config.h>
- #include "LabeledSetSelection.h"
- #include "LabeledFileList.h"
- #include "LabeledSetFactory.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, LabeledSetFactory *pSetFactory = NULL );
-
-
- virtual ~MultiDataset();
-
-
- const ClassNames & getClassNames ( const std::string & key ) const;
-
- ClassNames & getClassNamesNonConst ( const std::string & key );
-
- const LabeledSet * operator[] ( const std::string & key ) const;
- const LabeledSet * at ( const std::string & key ) const;
- };
- }
- #endif
|