Changeset 21 in 3DVCSoftware for trunk/source/App/TAppCommon
- Timestamp:
- 15 Feb 2012, 19:05:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppCommon/TAppComCamPara.cpp
r5 r21 984 984 xGetCameraShifts( 0, iMinAbsVOIId, m_uiFirstFrameId, dCamPosShift, dPicPosShift ); 985 985 Double dCamPosShiftVOI01 = dCamPosShift / Double( iMinVOI ); 986 Double dAbsCamPosShiftVOI01 = ( dCamPosShiftVOI01 < 0.0 ? -dCamPosShiftVOI01 : dCamPosShiftVOI01 );987 986 988 987 //--- determine maximum absolute camera position shift, precision, and base scale --- … … 997 996 } 998 997 } 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 999 1000 Double dEpsilon = 1e-15; 1001 Double dAbsCamPosShiftVOI01 = ( dCamPosShiftVOI01 < 0.0 ? -dCamPosShiftVOI01 : dCamPosShiftVOI01 ); 1000 1002 Double dShiftRatio = dMaxAbsCamPosShift / dAbsCamPosShiftVOI01 - dEpsilon; 1001 Int iPrecision = 0; for( ; (Double)( 1 << iPrecision ) < dShiftRatio; iPrecision++ ); 1003 for( ; (Double)( 1 << iPrecision ) < dShiftRatio; iPrecision++ ); 1004 #endif 1002 1005 Int iPrecShift = iPrecision + PDM_INTER_CALC_SHIFT + PDM_VIRT_DEPTH_PRECISION - 2; 1003 1006 AOF( iPrecShift < PDM_INTERNAL_CALC_BIT_DEPTH );
Note: See TracChangeset for help on using the changeset viewer.