Changeset 1713 for GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
- Timestamp:
- 11/06/06 18:48:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r1710 r1713 3384 3384 3385 3385 // evaluate merge cost for priority traversal 3386 const float mergeCost = 1.0f /(float)root->mTimeStamp;3386 const float mergeCost = -(float)root->mTimeStamp; 3387 3387 vcRoot->SetMergeCost(mergeCost); 3388 3388 … … 3428 3428 3429 3429 // evaluate merge cost for priority traversal 3430 float mergeCost = 1.0f /(float)root->mTimeStamp;3430 const float mergeCost = -(float)root->mTimeStamp; 3431 3431 viewCellInterior->SetMergeCost(mergeCost); 3432 3432 … … 5048 5048 5049 5049 // evaluate merge cost for priority traversal 5050 float mergeCost = 1.0f /(float)root->mTimeStamp;5050 const float mergeCost = -(float)root->mTimeStamp; 5051 5051 viewCellInterior->SetMergeCost(mergeCost); 5052 5052 … … 5747 5747 int numSamples; 5748 5748 int castSamples = 0; 5749 int splitsStepSize; 5750 5749 5751 char str[64]; 5750 5752 5751 5753 Environment::GetSingleton()->GetIntValue("ViewCells.Evaluation.samplesPerPass", samplesPerPass); 5752 5754 Environment::GetSingleton()->GetIntValue("ViewCells.Evaluation.samples", numSamples); 5755 Environment::GetSingleton()->GetIntValue("ViewCells.Evaluation.stepSize", splitsStepSize); 5753 5756 5754 5757 char statsPrefix[100]; … … 5782 5785 cout << "Evaluating view cell partition ... " << endl; 5783 5786 5784 VssRayContainer evaluationSamples;5785 5786 5787 while (castSamples < numSamples) 5787 5788 { 5789 VssRayContainer evaluationSamples; 5790 5788 5791 /////////////// 5789 5792 //-- we have to use uniform sampling strategy for construction rays … … 5822 5825 //-- output stats 5823 5826 5824 const int splitsStepSize = 500; 5825 const float memStepSize = 1.0f; 5826 5827 sprintf(str, "-splits-%09d-eval.log", castSamples); 5827 sprintf(str, "-%09d-eval.log", castSamples); 5828 5828 const string splitsFilename = string(statsPrefix) + string(str); 5829 5830 sprintf(str, "-mem-%09d-eval.log", castSamples);5831 const string memFilename = string(statsPrefix) + string(str);5832 5829 5833 5830 ofstream splitsStr(splitsFilename.c_str()); 5834 ofstream memStr(memFilename.c_str()); 5835 5836 mHierarchyManager->EvaluateSubdivision2(splitsStr, memStr, splitsStepSize, memStepSize); 5831 mHierarchyManager->EvaluateSubdivision2(splitsStr, splitsStepSize); 5837 5832 5838 5833 timeDiff = TimeDiff(startTime, GetTime()); 5839 5834 cout << "finished in " << timeDiff * 1e-3 << " secs" << endl; 5840 Debug << "statisti s compted in " << timeDiff * 1e-3 << " secs" << endl;5835 Debug << "statistics computed in " << timeDiff * 1e-3 << " secs" << endl; 5841 5836 5842 5837 disposeRays(evaluationSamples, NULL);
Note: See TracChangeset
for help on using the changeset viewer.