Changeset 820 in 3DVCSoftware for branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon
- Timestamp:
- 5 Feb 2014, 09:54:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComPrediction.cpp
r816 r820 625 625 626 626 Int iSizeInBits = g_aucConvertToBit[uiSize] - g_aucConvertToBit[iSubSample]; // respect sub-sampling factor 627 Int iMean = iSumDepth >> iSizeInBits*2; // iMean /= (uiWidth*uiHeight); 628 AOF( iMean == iSumDepth/((uiSize/iSubSample)*(uiSize/iSubSample) ) ); 629 AOF( iMean >= 0 && iMean < 256); 627 Int iMean = iSumDepth >> iSizeInBits*2; // iMean /= (uiSize*uiSize); 630 628 631 629 // start again for segmentation … … 648 646 // decide which segment this pixel belongs to 649 647 Int ucSegment = (Int)(depthPel>iMean); 650 AOF( ucSegment == 0 || ucSegment == 1 );651 648 652 649 // Matched Filter to find optimal (conventional) partitioning … … 718 715 Bool TComPrediction::getSegmentMaskFromDepth( Pel* pDepthPels, UInt uiDepthStride, UInt uiWidth, UInt uiHeight, Bool* pMask ) 719 716 { 720 AOF( uiWidth == uiHeight );721 722 717 // segmentation of texture block --> mask IDs 723 718 Pel* pDepthBlockStart = pDepthPels; … … 748 743 return false; 749 744 745 AOF(uiWidth==uiHeight); 750 746 Int iSizeInBits = g_aucConvertToBit[uiWidth]+2; 751 747 Int iMean = iSumDepth >> iSizeInBits*2; // iMean /= (uiWidth*uiHeight); 752 AOF( iMean == iSumDepth/(uiWidth*uiHeight) );753 AOF( iMean >= 0 && iMean < 256);754 748 755 749 // start again for segmentation … … 768 762 // decide which segment this pixel belongs to 769 763 Int ucSegment = (Int)(depthPel>iMean); 770 AOF( ucSegment == 0 || ucSegment == 1 );771 764 772 765 if( bInvertMask )
Note: See TracChangeset for help on using the changeset viewer.