- Timestamp:
- 16 Aug 2012, 13:41:34 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TAppCommon/TAppComCamPara.cpp
r102 r106 654 654 } 655 655 656 #if SAIT_VSO_EST_A0033657 Double g_dDispCoeff;658 #endif659 660 656 Bool 661 657 TAppComCamPara::xGetShiftParameterReal( UInt uiSourceView, UInt uiTargetView, UInt uiFrame, Bool bExternal, Bool bByIdx, Double& rdScale, Double& rdOffset ) … … 688 684 iTargetViewNum = (Int) uiTargetView; 689 685 } 690 691 #if SAIT_VSO_EST_A0033692 // This part should be modified later.693 {694 Double dFL1, dCS1, dCP1, dZN1, dZF1;695 Bool bInterpolated;696 Double dPos[3];697 xGetGeometryData( m_aiBaseViews[0], uiFrame, dFL1, dPos[0], dCS1, bInterpolated );698 xGetGeometryData( m_aiBaseViews[1], uiFrame, dFL1, dPos[1], dCS1, bInterpolated );699 700 xGetGeometryData( iSourceViewNum, uiFrame, dFL1, dCP1, dCS1, bInterpolated );701 xGetZNearZFar ( iSourceViewNum, uiFrame, dZN1, dZF1 );702 703 Double dBaseLine = dPos[0] - dPos[1]; //Max(Max(dPos[0],dPos[1]),dPos[2]) - Min(Min(dPos[0],dPos[1]),dPos[2]);704 g_dDispCoeff = fabs( dFL1 * ( dBaseLine / 2.0 ) / 255.0 * ( 1.0/dZN1 - 1.0/dZF1 ) );705 }706 #endif707 686 708 687 xGetGeometryData( iSourceViewNum, uiFrame, dFocalLengthSource, dPositionSource, dIntersectionSource, bInterpolatedSource );
Note: See TracChangeset for help on using the changeset viewer.