Ignore:
Timestamp:
5 Feb 2014, 09:54:12 (10 years ago)
Author:
rwth
Message:
  • cleanup: removed some assertions and added some comments
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComPrediction.cpp

    r816 r820  
    625625 
    626626  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);
    630628 
    631629  // start again for segmentation
     
    648646      // decide which segment this pixel belongs to
    649647      Int ucSegment = (Int)(depthPel>iMean);
    650       AOF( ucSegment == 0 || ucSegment == 1 );
    651648     
    652649      // Matched Filter to find optimal (conventional) partitioning
     
    718715Bool TComPrediction::getSegmentMaskFromDepth( Pel* pDepthPels, UInt uiDepthStride, UInt uiWidth, UInt uiHeight, Bool* pMask )
    719716{
    720   AOF( uiWidth == uiHeight );
    721  
    722717  // segmentation of texture block --> mask IDs
    723718  Pel*  pDepthBlockStart      = pDepthPels;
     
    748743    return false;
    749744 
     745  AOF(uiWidth==uiHeight);
    750746  Int iSizeInBits = g_aucConvertToBit[uiWidth]+2;
    751747  Int iMean = iSumDepth >> iSizeInBits*2;       // iMean /= (uiWidth*uiHeight);
    752   AOF( iMean == iSumDepth/(uiWidth*uiHeight) );
    753   AOF( iMean >= 0 && iMean < 256);
    754748 
    755749  // start again for segmentation
     
    768762      // decide which segment this pixel belongs to
    769763      Int ucSegment = (Int)(depthPel>iMean);
    770       AOF( ucSegment == 0 || ucSegment == 1 );
    771764     
    772765      if( bInvertMask )
Note: See TracChangeset for help on using the changeset viewer.