Changeset 28 in 3DVCSoftware for branches/0.3-poznan-univ/source/Lib/TLibRenderer/TRenFilter.cpp
- Timestamp:
- 24 Feb 2012, 20:22:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3-poznan-univ/source/Lib/TLibRenderer/TRenFilter.cpp
r5 r28 66 66 riBlendDistWeight = bBlendUseDistWeight ? iRelDistToLeft : 1 << (REN_VDWEIGHT_PREC - 1); 67 67 68 for (UInt uiDepthValue = 0; uiDepthValue <= 256; uiDepthValue++)68 for (UInt uiDepthValue = 0; uiDepthValue <= SizeOfLUT; uiDepthValue++) 69 69 { 70 70 //GT: retrieve depth approx from shift … … 73 73 } 74 74 // Set Threshold 75 riBlendZThres = ( max( abs(piInvZLUTLeft[0]- piInvZLUTLeft[ 255]), abs(piInvZLUTRight[0]- piInvZLUTRight[255]) ) * iBlendZThresPerc + 50) / 100;75 riBlendZThres = ( max( abs(piInvZLUTLeft[0]- piInvZLUTLeft[SizeOfLUT-1]), abs(piInvZLUTRight[0]- piInvZLUTRight[SizeOfLUT-1]) ) * iBlendZThresPerc + 50) / 100; 76 76 } 77 77
Note: See TracChangeset for help on using the changeset viewer.