Changeset 2647
- Timestamp:
- 03/18/08 16:29:14 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r2606 r2647 1692 1692 RegisterOption("ViewCells.importRandomViewCells", 1693 1693 optBool, 1694 "view_cells_import_random_viewcells =",1694 "view_cells_import_random_viewcells", 1695 1695 "false"); 1696 1696 1697 1697 RegisterOption("ViewCells.exportRandomViewCells", 1698 1698 optBool, 1699 "view_cells_export_random_viewcells =",1699 "view_cells_export_random_viewcells", 1700 1700 "false"); 1701 1701 -
GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp
r2643 r2647 138 138 mPvsStatFrames); 139 139 140 Debug<<"Info: will evaluate pixel error with "<<mPvsStatFrames<<" samples"<<endl; 140 141 141 142 mPvsErrorBuffer.resize(mPvsStatFrames); … … 1571 1572 1572 1573 glFinish(); 1574 1575 static bool first = true; 1576 if (first) { 1577 1578 1579 bool exportRandomViewCells; 1580 Environment::GetSingleton()->GetBoolValue("ViewCells.exportRandomViewCells", 1581 exportRandomViewCells); 1582 1583 if (0 && exportRandomViewCells) 1584 { 1585 char buff[512]; 1586 Environment::GetSingleton()->GetStringValue("Scene.filename", buff); 1587 string filename(buff); 1588 1589 string viewCellPointsFile; 1590 1591 if (strstr(filename.c_str(), ".obj")) 1592 viewCellPointsFile = ReplaceSuffix(filename, ".obj", ".vc"); 1593 else if (strstr(filename.c_str(), ".dat")) 1594 viewCellPointsFile = ReplaceSuffix(filename, ".dat", ".vc"); 1595 else if (strstr(filename.c_str(), ".x3d")) 1596 viewCellPointsFile = ReplaceSuffix(filename, ".x3d", ".vc"); 1597 1598 1599 cout << "exporting random view cells" << endl; 1600 preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 1601 cout << "finished" << endl; 1602 } 1603 first = false; 1604 } 1605 1573 1606 cout<<endl<<flush; 1574 1607 } … … 1630 1663 1631 1664 glFinish(); 1665 1666 1632 1667 cout << endl << flush; 1633 1668 } -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2645 r2647 1554 1554 viewPoints.push_back(*rit); 1555 1555 } 1556 1556 1557 1557 if (viewPoints.size() != renderer->mPvsErrorBuffer.size()) { 1558 1558 renderer->mPvsErrorBuffer.resize(viewPoints.size()); … … 1563 1563 } else 1564 1564 renderer->EvalPvsStat(); 1565 1565 1566 1566 mStats << 1567 1567 "#AvgPvsRenderError\n" <<renderer->mPvsStat.GetAvgError()<<endl<< -
GTP/trunk/Lib/Vis/Preprocessing/src/RandomViewCellsHandler.cpp
r2598 r2647 214 214 { 215 215 // export ten view cells with 100 random view points inside each 216 const int numViewCells = 100; 217 const int numViewPoints = 10; 216 const int numViewCells = 100; 217 // const int numViewPoints = 10; 218 const int numViewPoints = 100; 218 219 219 220 GenerateRandomViewCells(mViewCellPointsList, numViewCells, numViewPoints); -
GTP/trunk/Lib/Vis/Preprocessing/src/default.env
r2638 r2647 554 554 Preprocessor { 555 555 # internal 556 # rayCastMethod 0556 # rayCastMethod 0 557 557 # Intel 558 #rayCastMethod 1558 rayCastMethod 1 559 559 # Havran - 2 - static scene 560 560 # rayCastMethod 2 -
GTP/trunk/Lib/Vis/Preprocessing/src/main.cpp
r2643 r2647 321 321 preprocessor->mKdTree); 322 322 323 } 324 325 bool exportRandomViewCells; 326 Environment::GetSingleton()->GetBoolValue("ViewCells.exportRandomViewCells", 327 exportRandomViewCells); 328 329 if (exportRandomViewCells) 330 { 331 cout << "exporting random view cells" << endl; 332 preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile); 333 cout << "finished" << endl; 323 334 } 324 335 325 336 if (preprocessor->mUseGlRenderer || preprocessor->mUseGlDebugger) 326 337 { … … 366 377 } 367 378 368 bool exportRandomViewCells;369 Environment::GetSingleton()->GetBoolValue("ViewCells.exportRandomViewCells",370 exportRandomViewCells);371 372 if (exportRandomViewCells)373 {374 cout << "exporting random view cells" << endl;375 preprocessor->mViewCellsManager->ExportRandomViewCells(viewCellPointsFile);376 cout << "finished" << endl;377 }378 379 379 380 /*bool evaluatePixelError;
Note: See TracChangeset
for help on using the changeset viewer.