Changeset 1983 for GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
- Timestamp:
- 01/15/07 21:46:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/SamplingStrategy.cpp
r1976 r1983 10 10 11 11 namespace GtpVisibilityPreprocessor { 12 13 #define MUTATION_USE_CDF 0 12 14 13 15 … … 729 731 730 732 float pContributingRays = contributingRays/(float)vssRays.size(); 731 float importance = 1.0f/(pContributingRays + 1e-5);733 float importance = sqr(1.0f/(pContributingRays + 1e-5)); 732 734 // set this values for last contributingRays 733 735 int index = mBufferStart - 1; … … 739 741 } 740 742 741 743 #if MUTATION_USE_CDF 742 744 // compute cdf 743 745 mRays[0].mCdf = mRays[0].mImportance/(mRays[0].mSamples+1); … … 749 751 mRays[i].mCdf *= scale; 750 752 } 751 753 #endif 754 752 755 cout<<"Importance = "<< 753 756 GetEntry(0).mImportance<<" "<< … … 888 891 889 892 int index; 890 #if 1 893 894 #if !MUTATION_USE_CDF 891 895 // get tail of the buffer 892 896 index = (mLastIndex+1)%mRays.size();
Note: See TracChangeset
for help on using the changeset viewer.