Changeset 21 in 3DVCSoftware for trunk/source/App/TAppCommon


Ignore:
Timestamp:
15 Feb 2012, 19:05:04 (13 years ago)
Author:
hschwarz
Message:

updated with HHI branch (0.2-HHI)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/App/TAppCommon/TAppComCamPara.cpp

    r5 r21  
    984984  xGetCameraShifts( 0, iMinAbsVOIId, m_uiFirstFrameId, dCamPosShift, dPicPosShift );
    985985  Double  dCamPosShiftVOI01     = dCamPosShift / Double( iMinVOI );
    986   Double  dAbsCamPosShiftVOI01  = ( dCamPosShiftVOI01 < 0.0 ? -dCamPosShiftVOI01 : dCamPosShiftVOI01 );
    987986
    988987  //--- determine maximum absolute camera position shift, precision, and base scale ---
     
    997996    }
    998997  }
     998  Int     iPrecision  = 0; 
     999#if 0 // enabling this lines might be reasonable, but produces different results for the 2 view and 3 view test cases
    9991000  Double  dEpsilon    = 1e-15;
     1001  Double  dAbsCamPosShiftVOI01  = ( dCamPosShiftVOI01 < 0.0 ? -dCamPosShiftVOI01 : dCamPosShiftVOI01 );
    10001002  Double  dShiftRatio = dMaxAbsCamPosShift / dAbsCamPosShiftVOI01 - dEpsilon;
    1001   Int     iPrecision  = 0;  for( ; (Double)( 1 << iPrecision ) < dShiftRatio; iPrecision++ );
     1003  for( ; (Double)( 1 << iPrecision ) < dShiftRatio; iPrecision++ );
     1004#endif
    10021005  Int     iPrecShift  = iPrecision + PDM_INTER_CALC_SHIFT + PDM_VIRT_DEPTH_PRECISION - 2;
    10031006  AOF(    iPrecShift  < PDM_INTERNAL_CALC_BIT_DEPTH );
Note: See TracChangeset for help on using the changeset viewer.