Changeset 102 in 3DVCSoftware for trunk/source/Lib/TAppCommon
- Timestamp:
- 11 Aug 2012, 14:39:19 (12 years ago)
- Location:
- trunk/source/Lib/TAppCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TAppCommon/TAppComCamPara.cpp
r100 r102 1456 1456 } 1457 1457 1458 #if SAIT_VSO_EST_A0033 1459 Void 1460 TAppComCamPara::xSetDispCoeff( UInt uiFrameId, Int iViewIdx ) 1461 { 1462 UInt uiFrame = m_uiFirstFrameId + uiFrameId; 1463 Int iSourceViewNum = m_aiBaseViews[ iViewIdx ]; 1464 Double dBaseLine = 0.0; 1465 Double dFL1, dCS1, dCP1, dZN1, dZF1; 1466 Bool bInterpolated; 1467 double dPos[3]; 1468 1469 if( m_iNumberOfBaseViews == 3 ) 1470 { 1471 xGetGeometryData( m_aiBaseViews[0], uiFrame, dFL1, dPos[0], dCS1, bInterpolated ); 1472 xGetGeometryData( m_aiBaseViews[1], uiFrame, dFL1, dPos[1], dCS1, bInterpolated ); 1473 xGetGeometryData( m_aiBaseViews[2], uiFrame, dFL1, dPos[2], dCS1, bInterpolated ); 1474 1475 xGetGeometryData( iSourceViewNum, uiFrame, dFL1, dCP1, dCS1, bInterpolated ); 1476 xGetZNearZFar ( iSourceViewNum, uiFrame, dZN1, dZF1 ); 1477 1478 dBaseLine = ( Max( dPos[0], Max( dPos[1], dPos[2] ) ) - Min( dPos[0], Min( dPos[1], dPos[2] ) ) ) / 2.0; 1479 } 1480 else if( m_iNumberOfBaseViews == 2 ) 1481 { 1482 xGetGeometryData( m_aiBaseViews[0], uiFrame, dFL1, dPos[0], dCS1, bInterpolated ); 1483 xGetGeometryData( m_aiBaseViews[1], uiFrame, dFL1, dPos[1], dCS1, bInterpolated ); 1484 1485 xGetGeometryData( iSourceViewNum, uiFrame, dFL1, dCP1, dCS1, bInterpolated ); 1486 xGetZNearZFar ( iSourceViewNum, uiFrame, dZN1, dZF1 ); 1487 1488 dBaseLine = dPos[0] - dPos[1]; 1489 } 1490 1491 1492 m_dDispCoeff = fabs( dFL1 * ( dBaseLine / 2.0 ) / 255.0 * ( 1.0/dZN1 - 1.0/dZF1 ) ); 1493 } 1494 #endif 1458 1495 1459 1496 Bool -
trunk/source/Lib/TAppCommon/TAppComCamPara.h
r100 r102 67 67 Bool m_bCamParsCodedPrecSet; ///< Coded Cam Para precision set for current frame; 68 68 69 #if SAIT_VSO_EST_A0033 70 Double m_dDispCoeff; 71 #endif 72 69 73 // view lists 70 74 std::vector<Int> m_aiViewsInCfgFile; ///< views for which parameters are specified in cfg file (from left to right) … … 184 188 UInt getCurFrameId () { return m_iCurrentFrameId; } 185 189 static Void convertNumberString ( Char* pchViewNumberString, std::vector<Int>& raiViewNumbers, Double dViewNumPrec ); 190 191 #if SAIT_VSO_EST_A0033 192 Void xSetDispCoeff( UInt uiStartFrameId, Int iViewIdx ); 193 Double getDispCoeff() { return m_dDispCoeff; } 194 #endif 186 195 187 196 // function for getting parameters and parameter arrays
Note: See TracChangeset for help on using the changeset viewer.