Changeset 667 for GTP/trunk/Lib/Vis/shared/EvalStats
- Timestamp:
- 03/01/06 10:31:49 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/shared/EvalStats/EvalStats.cpp
r656 r667 12 12 using namespace std; 13 13 14 /** This is a small function which takes two log files and computes the 15 difference in percent of the weighted render cost. 16 */ 14 17 bool extractRenderCost(ifstream &file, vector<float> &renderCosts) 15 18 { … … 49 52 vector<float> renderCosts2; 50 53 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 51 64 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; 53 79 54 80 ofstream statsOut(argv[3]); 55 56 extractRenderCost(file1, renderCosts1);57 extractRenderCost(file2, renderCosts2);58 81 59 82 //statsOut << "rc1 size: " << (int)renderCosts1.size() << " " << (int)renderCosts2.size() << endl << endl;
Note: See TracChangeset
for help on using the changeset viewer.