Changeset 41 in 3DVCSoftware for branches/0.3-poznan-univ/source/Lib/TLibRenderer/TRenTop.cpp
- Timestamp:
- 26 Mar 2012, 09:03:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3-poznan-univ/source/Lib/TLibRenderer/TRenTop.cpp
r28 r41 498 498 499 499 // compute disparity and shift 500 iShiftedPos = ( iPosX << m_iRelShiftLUTPrec ) - m_aiShiftLUTCur[RemoveBitIncrement LUT( pcDepthData[iPosX])];500 iShiftedPos = ( iPosX << m_iRelShiftLUTPrec ) - m_aiShiftLUTCur[RemoveBitIncrement( pcDepthData[iPosX])]; 501 501 502 502 if (iPosX == 0) … … 652 652 653 653 // compute disparity and shift 654 assert( RemoveBitIncrement LUT(pcDepthData[iPosX]) >= 0 && RemoveBitIncrementLUT(pcDepthData[iPosX]) <= SizeOfLUT );655 dPrevShiftedPos = (Double) iPosX - m_adShiftLUTCur[ RemoveBitIncrement LUT(pcDepthData[iPosX])];654 assert( RemoveBitIncrement(pcDepthData[iPosX]) >= 0 && RemoveBitIncrement(pcDepthData[iPosX]) <= SizeOfLUT ); 655 dPrevShiftedPos = (Double) iPosX - m_adShiftLUTCur[ RemoveBitIncrement(pcDepthData[iPosX])]; 656 656 657 657 if (iPosX == 0) … … 833 833 for(Int iPosX = 0; iPosX < iWidth; iPosX++) 834 834 { 835 assert( RemoveBitIncrement LUT(pcDepthData[iPosX]) >= 0 && RemoveBitIncrementLUT(pcDepthData[iPosX]) <= SizeOfLUT );836 Int iShiftedPos = iPosX - m_aiShiftLUTCur[ RemoveBitIncrement LUT(pcDepthData[iPosX])] ;835 assert( RemoveBitIncrement(pcDepthData[iPosX]) >= 0 && RemoveBitIncrement(pcDepthData[iPosX]) <= SizeOfLUT ); 836 Int iShiftedPos = iPosX - m_aiShiftLUTCur[ RemoveBitIncrement(pcDepthData[iPosX])] ; 837 837 if (iShiftedPos < iWidth && iShiftedPos >= 0) 838 838 { … … 908 908 for(Int iPosX = 0; iPosX < iOutputWidth; iPosX ++) 909 909 { 910 Int iBackShiftedPos = (iPosX << m_iRelShiftLUTPrec) - m_aiShiftLUTCur[ RemoveBitIncrement LUT( pcDepthData[iPosX] )];910 Int iBackShiftedPos = (iPosX << m_iRelShiftLUTPrec) - m_aiShiftLUTCur[ RemoveBitIncrement( pcDepthData[iPosX] )]; 911 911 if( ( pcFilledData[iPosX] == REN_IS_FILLED ) && (iBackShiftedPos >= 0 ) && ( iBackShiftedPos < iInputWidth ) ) 912 912 { … … 981 981 { 982 982 // compute disparity and shift 983 iShiftedPos = iPosX - m_aiShiftLUTCur[RemoveBitIncrement LUT(pcDepthData[iPosX])];983 iShiftedPos = iPosX - m_aiShiftLUTCur[RemoveBitIncrement(pcDepthData[iPosX])]; 984 984 985 985 if ( iPosX == 0 ) … … 1866 1866 if ( (pcFilledRightData[uiXPos] != REN_IS_HOLE ) && ( pcFilledLeftData[uiXPos] != REN_IS_HOLE) ) 1867 1867 { 1868 Int iDepthDifference = m_piInvZLUTLeft[RemoveBitIncrement LUT(pcLeftDepthData[uiXPos])] - m_piInvZLUTRight[RemoveBitIncrementLUT(pcRightDepthData[uiXPos])];1868 Int iDepthDifference = m_piInvZLUTLeft[RemoveBitIncrement(pcLeftDepthData[uiXPos])] - m_piInvZLUTRight[RemoveBitIncrement(pcRightDepthData[uiXPos])]; 1869 1869 1870 1870 if ( abs ( iDepthDifference ) <= m_iBlendZThres ) … … 1895 1895 else if ( (pcFilledRightData[uiXPos] == REN_IS_HOLE) && (pcFilledLeftData[uiXPos] == REN_IS_HOLE)) 1896 1896 { 1897 pcOutputData[uiXPos] = m_piInvZLUTLeft[RemoveBitIncrement LUT( pcLeftDepthData[uiXPos])] < m_piInvZLUTRight[RemoveBitIncrementLUT(pcRightDepthData[uiXPos])] ? pcLeftVideoData[uiXPos] : pcRightVideoData[uiXPos];1897 pcOutputData[uiXPos] = m_piInvZLUTLeft[RemoveBitIncrement( pcLeftDepthData[uiXPos])] < m_piInvZLUTRight[RemoveBitIncrement(pcRightDepthData[uiXPos])] ? pcLeftVideoData[uiXPos] : pcRightVideoData[uiXPos]; 1898 1898 } 1899 1899 else
Note: See TracChangeset for help on using the changeset viewer.