Ignore:
Timestamp:
03/01/06 10:31:49 (18 years ago)
Author:
mattausch
Message:

test version
build script for testing. code is set uo for testing also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/shared/EvalStats/EvalStats.cpp

    r656 r667  
    1212using namespace std; 
    1313 
     14/** This is a small function which takes two log files and computes the 
     15        difference in percent of the weighted render cost. 
     16*/ 
    1417bool extractRenderCost(ifstream &file, vector<float> &renderCosts) 
    1518{ 
     
    4952        vector<float> renderCosts2; 
    5053         
     54        if (argc < 4) 
     55        { 
     56                cerr << "arguments missing" << endl; 
     57                exit(1); 
     58        } 
     59 
     60 
     61        // read two files and the output file 
     62 
     63        // read file 1 
    5164        ifstream file1(argv[1]); 
    52         ifstream file2(argv[2]); 
     65 
     66        // extract the render cost 
     67        cout << "extracting render cost of file " << argv[1] << endl; 
     68        cout.flush(); 
     69        extractRenderCost(file1, renderCosts1); 
     70 
     71        // read file 2 
     72    ifstream file2(argv[2]); 
     73        cout << "extracting render cost of file " << argv[2] << endl; 
     74        cout.flush(); 
     75        extractRenderCost(file2, renderCosts2); 
     76 
     77 
     78        cout << "writing output to file " << argv[3] << endl; 
    5379 
    5480        ofstream statsOut(argv[3]); 
    55  
    56         extractRenderCost(file1, renderCosts1); 
    57         extractRenderCost(file2, renderCosts2); 
    5881 
    5982        //statsOut << "rc1 size: " << (int)renderCosts1.size() << " " << (int)renderCosts2.size() << endl << endl; 
Note: See TracChangeset for help on using the changeset viewer.