Changeset 2574 for GTP/trunk/Lib/Vis/Preprocessing
- Timestamp:
- 01/03/08 15:13:40 (17 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/CombinedPreprocessor.cpp
r2066 r2574 67 67 68 68 int lastEvaluation = 0; 69 int totalVssRays = 0;69 // int totalVssRays = 0; 70 70 mPass = 0; 71 71 … … 86 86 87 87 mMixtureDistribution->GenerateSamples(mSamplesPerPass, rays); 88 88 89 cerr<<"Casting rays..."<<endl; 90 // bool doubleRays = true; 89 91 bool doubleRays = true; 90 92 CastRays(rays, vssRays, doubleRays, pruneInvalidRays); 91 totalVssRays += (int)vssRays.size(); 93 mTotalRaysCast += (int)vssRays.size(); 94 cerr<<"Done..."<<endl; 92 95 96 cerr<<"Computing ray contributions..."<<endl; 93 97 mMixtureDistribution->ComputeContributions(vssRays); 98 cerr<<"Done..."<<endl; 94 99 95 100 … … 114 119 Debug<<"done."<<endl<<flush; 115 120 } 116 117 121 118 122 mMixtureDistribution->UpdateDistributions(vssRays); 119 123 … … 125 129 "#Time\n" << time <<endl<< 126 130 "#TotalSamples\n" <<i<<endl<< 127 "#RssSamples\n" << totalVssRays<<endl;131 "#RssSamples\n" <<mTotalRaysCast<<endl; 128 132 129 133 float last = 0.0f; -
GTP/trunk/Lib/Vis/Preprocessing/src/IntelRayCaster.cpp
r2572 r2574 15 15 FILE *fileOut = 0; 16 16 bool saveRays = true; 17 const int saveRaysStart = 3000000; 17 18 int cntSavedRaysFLUSH = 0; 18 19 unsigned long int cntSavedRays = 0; 19 const int SavedLIMIT = 1024;20 const int intSavedLIMIT = 1024; 20 21 void 21 22 InitSaving() … … 125 126 } 126 127 127 if (saveRays ) {128 if (saveRays && preprocessor->mTotalRaysCast > saveRaysStart) { 128 129 if (castDoubleRay) 129 130 { … … 257 258 #endif 258 259 259 if (saveRays ) {260 if (saveRays && preprocessor->mTotalRaysCast > saveRaysStart) { 260 261 if (castDoubleRay) 261 262 fprintf(fileOut, "G\n"); … … 305 306 306 307 307 if (saveRays ) {308 if (saveRays && preprocessor->mTotalRaysCast > saveRaysStart) { 308 309 if (castDoubleRay) 309 310 fprintf(fileOut, "%d %4.7f %4.7f %4.7f %4.7f %4.7f %4.7f %d %4.7f %d %4.7f\n", -
GTP/trunk/Lib/Vis/Preprocessing/src/Makefile
r2521 r2574 1 1 ############################################################################# 2 2 # Makefile for building: preprocessor 3 # Generated by qmake (2.00a) (Qt 4.1.2) on: út 3. VII 21:32:3220073 # Generated by qmake (2.00a) (Qt 4.1.2) on: so 22. XII 21:22:31 2007 4 4 # Project: preprocessor.pro 5 5 # Template: app … … 63 63 $(MAKE) -f $(MAKEFILE).Debug uninstall 64 64 65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc .net\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \65 Makefile: preprocessor.pro C:/Qt/4.1.2/mkspecs/win32-msvc2005\qmake.conf C:/Qt/4.1.2/mkspecs/qconfig.pri \ 66 66 C:\Qt\4.1.2\mkspecs\features\qt_config.prf \ 67 67 C:\Qt\4.1.2\mkspecs\features\exclusive_builds.prf \ -
GTP/trunk/Lib/Vis/Preprocessing/src/Mutation.cpp
r2353 r2574 447 447 448 448 #else 449 cerr << "warning: reverse mutation not supported!" << endl;449 cerr << "warning: reverse mutation not supported!" << endl; 450 450 #endif 451 451 … … 633 633 mRays[index].mMutations++; 634 634 mRays[index].mUnsuccessfulMutations++; 635 635 636 636 return true; 637 637 } 638 638 639 639 return GenerateMutation(index, sray); 640 640 } -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.cpp
r2572 r2574 54 54 mThread(NULL), 55 55 mGlobalLinesRenderer(NULL), 56 mUseHwGlobalLines(false) 56 mUseHwGlobalLines(false), 57 mTotalRaysCast(0) 57 58 { 58 59 Environment::GetSingleton()->GetBoolValue("Preprocessor.useGlRenderer", mUseGlRenderer); … … 1232 1233 #endif 1233 1234 } 1234 1235 cerr<<"Deternmining PVS objects"<<endl; 1235 1236 DeterminePvsObjects(vssRays); 1236 1237 } -
GTP/trunk/Lib/Vis/Preprocessing/src/Preprocessor.h
r2342 r2574 261 261 int mSamplesPerPass; 262 262 int mSamplesPerEvaluation; 263 264 int mTotalRaysCast; 263 265 264 266 RayCaster *mRayCaster; -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.h
r2571 r2574 575 575 const float filterSize, 576 576 ObjectPvs &pvs, 577 vector<AxisAlignedBox3> *filteredBoxes = NULL); 577 vector<AxisAlignedBox3> *filteredBoxes = NULL, 578 const bool onlyNewObjects = false); 578 579 579 580 void ApplySpatialFilter(KdTree *kdTree, -
GTP/trunk/Lib/Vis/Preprocessing/src/default.env
r2060 r2574 106 106 # distributions rss+spatial+object_direction 107 107 # distributions rss+object_direction+spatial+object+direction 108 distributions mutation+spatial+object_direction 108 distributions mutation+spatial+object_direction+filter_based 109 109 # distributions rss+object_direction 110 110 # distributions object_direction … … 182 182 # splitMethod SAH 183 183 splitBorder 0.01 184 pvsArea 1e-3 184 185 } 185 186 -
GTP/trunk/Lib/Vis/Preprocessing/src/preprocessor.pro
r2148 r2574 116 116 RenderTexture.cpp Mutation.cpp Timer/RDTSCTimer.cpp \ 117 117 Timer/BenchTimer.cpp Timer/merror.cpp \ 118 Intersectable.cpp TraversalTree.cpp ObjectPvs.cpp ObjectsParser.cpp 118 Intersectable.cpp TraversalTree.cpp ObjectPvs.cpp ObjectsParser.cpp \ 119 FilterBasedDistribution.cpp DifferenceSampling.cpp 119 120 120 121 -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test2
r2515 r2574 3 3 4 4 #COMMAND="./release/preprocessor.exe -preprocessor_quit_on_finish+" 5 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer + -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=1000000 -total_samples=100000000"5 COMMAND="../scripts/preprocessor.sh -preprocessor_quit_on_finish+ -preprocessor_use_gl_renderer- -preprocessor_evaluate_filter- -samples_per_evaluation=5000000 -samples_per_pass=500000 -total_samples=6000000" 6 6 7 7 … … 29 29 #VIEWCELLS=../data/test1/test-viewcells.xml 30 30 31 SCENE=../data/Arena/arena-high-lods.obj 32 VIEWCELLS=../data/Arena/viewcells-5000.xml.gz 31 33 32 SCENE=../data/vienna/vienna_cropped.obj 33 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 34 #VIEWCELLS=../data/vienna/vienna-seq-viewcells-20000.xml.gz 34 35 #SCENE=../data/vienna/vienna_cropped.obj 36 #VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 37 #VIEWCELLS=../data/vienna/vienna-sequential-30000-single-viewcell.xml 35 38 36 39 … … 45 48 46 49 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 47 -rss_distributions= mutation+object_direction+spatial\48 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ \50 -rss_distributions=direction+spatial+mutation \ 51 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ -view_cells_filter_width=1.0 \ 49 52 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4a.xml \ 50 53 -preprocessor_stats=$PREFIX-i-mixed-b1-n4a.log \ 51 54 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog 52 55 56 #-rss_distributions=mutation+object_direction+spatial \
Note: See TracChangeset
for help on using the changeset viewer.