Преглед на файлове

convertFeatures removed

Bjoern Froehlich преди 13 години
родител
ревизия
677dcf6ac0
променени са 1 файла, в които са добавени 0 реда и са изтрити 76 реда
  1. 0 76
      progs/convertFeatures.cpp

+ 0 - 76
progs/convertFeatures.cpp

@@ -1,76 +0,0 @@
-/**
-* @file testClassifier.cpp
-* @brief main program for classifier evaluation
-* @author Erik Rodner
-* @date 2007-10-12
-*/
-
-#include <fstream>
-#include <iostream>
-
-#include <vislearning/cbaselib/MultiDataset.h>
-#include <objrec/iclassifier/icgeneric/CSGeneric.h>
-#include <vislearning/cbaselib/ClassificationResults.h>
-#include <objrec/iclassifier/codebook/MutualInformation.h>
-
-#include "vislearning/classifier/classifierbase/FeaturePoolClassifier.h"
-#include <vislearning/classifier/fpclassifier/randomforest/FPCRandomForestTransfer.h>
-#include <vislearning/classifier/classifierinterfaces/VCFeaturePool.h>
-
-#include "core/basics/Config.h"
-#include <vislearning/baselib/Preprocess.h>
-#include <core/basics/StringTools.h>
-
-#undef DEBUG
-
-using namespace OBJREC;
-
-using namespace NICE;
-
-using namespace std;
-
-int main( int argc, char **argv )
-{
-  std::set_terminate( __gnu_cxx::__verbose_terminate_handler );
-
-  Config conf( argc, argv );
-  string fn = conf.gS( "main", "input", "train.vec" );
-  int format = conf.gI( "main", "format", 0 );
-  string outfn = conf.gS( "main", "output", "out.vec" );
-
-  LabeledSetVector test;
-
-  test.read( fn, format );
-  cout << "fn: " << fn << endl;
-
-  ofstream fout( outfn.c_str() );
-  ofstream cn(( outfn + ".cn" ).c_str() );
-
-  fout << test.count() << endl;
-  cn << test.count() << endl;
-  fout << test.dimension();
-  cn << 1;
-
-  for ( map< int, vector<NICE::Vector *> >::iterator iter = test.begin(); iter != test.end(); ++iter )
-  {
-    for ( int j = 0; j < iter->second.size(); j++ )
-    {
-      Vector vec = *( iter->second[j] );
-      cn << endl << iter->first;
-      fout << endl;
-
-      for ( int i = 0; i < vec.size() - 1; i++ )
-      {
-        fout << vec[i] << " ";
-      }
-
-      fout << vec[vec.size()-1];
-    }
-  }
-
-  fout.close();
-
-  cn.close();
-
-  return 0;
-}