1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /**
- * @file testRF.cpp
- * @brief test random forest implementation
- * @author Björn Fröhlich
- * @date 06/08/2010
- */
- #include "objrec/nice.h"
- #include "objrec/baselib/Config.h"
- #include "objrec/classifier/fpclassifier/randomforest/FPCRandomForests.h"
- #include "objrec/classifier/classifierbase/FeaturePoolClassifier.h"
- #include "objrec/baselib/Globals.h"
- using namespace OBJREC;
- using namespace NICE;
- using namespace std;
- int main (int argc, char **argv)
- {
- if(argc < 1)
- {
- cerr << "Bitte Datei angeben" << endl;
- return -1;
- }
-
- string filename;
- filename += argv[1];
- cout << "file: " << filename << endl;
-
- Config *conf = new Config();
-
- FeaturePoolClassifier *fpcrfCs = new FPCRandomForests(conf, "CsurkaForest");
-
- //Vector *vec = new Vector(384);
- //Example ex(vec);
- fpcrfCs->setMaxClassNo(8);
- fpcrfCs->read(filename);
- /*
- ClassificationResult r;
-
- if(fpcrfCs != NULL)
- {
- r = fpcrfCs->classify ( ex );
- }
- */
- return 0;
- }
|