- Timestamp:
- 01/24/07 15:59:29 (18 years ago)
- Location:
- GTP/trunk/Lib/Vis/Preprocessing/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/CombinedPreprocessor.cpp
r2049 r2051 115 115 } 116 116 117 117 118 mMixtureDistribution->UpdateDistributions(vssRays); 118 119 … … 125 126 "#TotalSamples\n" <<i<<endl<< 126 127 "#RssSamples\n" <<totalVssRays<<endl; 128 129 float last = 0.0f; 130 for (int k=0; k < 6; k++) { 131 float ratio = 0.0f; 132 if (k < mMixtureDistribution->mDistributions.size()) { 133 ratio = mMixtureDistribution->mDistributions[k]->mRatio-last; 134 last = mMixtureDistribution->mDistributions[k]->mRatio;; 135 } 136 mStats << 137 "#Distribution"<<k<<endl<< 138 ratio<<endl; 139 } 140 127 141 lastEvaluation = i; 128 142 129 143 if (renderer) { 130 144 ComputeRenderError(); 131 145 } 132 146 } 133 147 148 134 149 long time = TimeDiff(startTime, GetTime()); 135 150 if (mTotalTime!= -1 && time/1000 > mTotalTime) -
GTP/trunk/Lib/Vis/Preprocessing/src/Environment.cpp
r2048 r2051 1420 1420 optFloat, 1421 1421 "view_cells_filter_width=", 1422 " 200.0");1422 "1.0"); 1423 1423 1424 1424 RegisterOption("ViewCells.loadFromFile", -
GTP/trunk/Lib/Vis/Preprocessing/src/QtInterface/QtGlRenderer.cpp
r2050 r2051 116 116 pvs); 117 117 } 118 118 119 119 // cout<<"pvs size"<<pvs.GetSize()<<endl<<flush; 120 120 -
GTP/trunk/Lib/Vis/Preprocessing/src/ViewCellsManager.cpp
r2048 r2051 2456 2456 PvsFilterStatistics fstat = ApplyFilter2(viewcell, 2457 2457 false, 2458 1.0f,2458 mFilterWidth, 2459 2459 filteredPvs); 2460 2460 … … 3505 3505 } 3506 3506 #else 3507 radius = 0.5f*globalRadius + 0.5f*localRadius; 3508 3507 3508 // radius = 0.5f*globalRadius + 0.5f*localRadius; 3509 radius = Min(globalRadius, localRadius); 3510 3509 3511 if (localRadius > globalRadius) 3510 3512 stats.mLocalFilterCount++; -
GTP/trunk/Lib/Vis/Preprocessing/src/default.env
r2050 r2051 61 61 # type render 62 62 detectEmptyViewSpace true 63 pvsRenderErrorSamples 2063 pvsRenderErrorSamples 0 64 64 # pvsRenderErrorSamples 10000 65 65 quitOnFinish false -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test2
r2049 r2051 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_pass=1000000 -total_samples=1000000000" 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" 6 6 7 7 8 #SCENE="../data/vienna/vienna-buildings.x3d;../data/vienna/vienna-roofs.x3d;../data/vienna/vienna-roads.x3d" … … 31 32 VIEWCELLS=../data/vienna/vienna_cropped-gradient-viewcells.xml.gz 32 33 33 PREFIX=../work/plots/osp-TEST-1e5 34 # SCENE=../data/Pompeii/PompeiiTen.obj 35 # VIEWCELLS=../data/Pompeii/pompeii_big-seq-viewcells.xml.gz 36 37 PREFIX=../work/plots/osp-FILTER-1e5 34 38 35 39 #SCENE=../data/atlanta/atlanta2.x3d … … 37 41 38 42 39 # $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 40 # -rss_distributions=mutation+object_direction+spatial -view_cells_filter_max_size=1 \ 41 # -view_cells_use_kd_pvs+ -af_use_kd_pvs+ \ 42 # -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4l.xml \ 43 # -preprocessor_stats=$PREFIX-i-mixed-b1-n4l.log \ 44 # -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4l.hlog 43 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 44 -rss_distributions=mutation+object_direction+spatial \ 45 -view_cells_filter_width=1.0 \ 46 -view_cells_use_kd_pvs+ -af_use_kd_pvs- \ 47 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4a.xml \ 48 -preprocessor_stats=$PREFIX-i-mixed-b1-n4a.log \ 49 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4a.hlog 45 50 46 $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 47 -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 48 -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 49 -preprocessor_histogram_file=$PREFIX-r-reference.hlog 51 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 52 -rss_distributions=mutation+object_direction+spatial \ 53 -view_cells_filter_width=0.0 \ 54 -view_cells_use_kd_pvs+ -af_use_kd_pvs- \ 55 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4b.xml \ 56 -preprocessor_stats=$PREFIX-i-mixed-b1-n4b.log \ 57 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4b.hlog 58 59 $COMMAND -preprocessor=combined -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 60 -rss_distributions=mutation+object_direction+spatial \ 61 -view_cells_filter_width=1.0 \ 62 -view_cells_use_kd_pvs+ -af_use_kd_pvs+ \ 63 -preprocessor_visibility_file=$PREFIX-i-mixed-b1-n4c.xml \ 64 -preprocessor_stats=$PREFIX-i-mixed-b1-n4c.log \ 65 -preprocessor_histogram_file=$PREFIX-i-mixed-b1-n4c.hlog 66 67 # $COMMAND -preprocessor=sampling -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ 68 # -preprocessor_visibility_file=$PREFIX-r-reference.xml \ 69 # -view_cells_filter_max_size=1 -preprocessor_stats=$PREFIX-r-reference.log \ 70 # -preprocessor_histogram_file=$PREFIX-r-reference.hlog 50 71 51 72 # $COMMAND -scene_filename=$SCENE -view_cells_filename=$VIEWCELLS \ -
GTP/trunk/Lib/Vis/Preprocessing/src/run_test_pompeii
r2049 r2051 8 8 VIEWCELLS=../data/Pompeii/pompeii_big-seq-viewcells.xml.gz 9 9 10 PREFIX=../work/plots/osp-pompeii 4-1e510 PREFIX=../work/plots/osp-pompeiiTEST-1e5 11 11 12 12
Note: See TracChangeset
for help on using the changeset viewer.