Changeset 655 in 3DVCSoftware for trunk/source/Lib/TAppCommon
- Timestamp:
- 23 Oct 2013, 23:01:30 (11 years ago)
- Location:
- trunk/source/Lib/TAppCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TAppCommon/TAppComCamPara.cpp
r608 r655 615 615 { 616 616 UInt uiFoundLine = -1; 617 #if H_3D_FIX_REN_WARNING618 617 if ( !xGetCameraDataRow( iView, uiFrame, uiFoundLine ) && xIsIn( m_aiSortedBaseViews, iView )) 619 #else620 if ( !xGetCameraDataRow( iView, uiFrame, uiFoundLine ) )621 #endif622 618 { 623 619 AOT( m_aadCameraParameters[ uiFoundLine ].size() < 6 ); … … 635 631 Int iDummy; 636 632 637 #if H_3D_FIX_REN_WARNING638 633 if( !xGetLeftRightView( iView, m_aiSortedBaseViews, iLeftView, iRightView, iDummy, iDummy ) || 639 #else640 if( !xGetLeftRightView( iView, m_aiViewsInCfgFile, iLeftView, iRightView, iDummy, iDummy ) ||641 #endif642 634 xGetCameraDataRow( iLeftView, uiFrame, uiLeftViewLine ) || 643 635 xGetCameraDataRow( iRightView, uiFrame, uiRightViewLine ) 644 636 ) 645 637 { 646 #if H_3D_FIX_REN_WARNING647 638 std::cerr << "No left or no right base view next to view " << (Double)iView / m_dViewNumPrec << " for Frame " << uiFrame << " given in CameraParameterFile" << std::endl; 648 #else649 std::cerr << "No Left or no Right View next to View " << (Double)iView / m_dViewNumPrec << " for Frame " << uiFrame << " given in CameraParameterFile" << std::endl;650 #endif651 639 AOT(true); 652 640 exit( EXIT_FAILURE ); … … 1352 1340 } 1353 1341 } 1354 #if H_3D_FIX_REN_WARNING 1342 1355 1343 Bool bIgnoreFirst = true; 1356 1344 for( UInt uiERView = 0; uiERView < m_aiSynthViews.size() && !m_bSetupFromCoded; uiERView++ ) … … 1371 1359 std::cout << std::endl; 1372 1360 } 1373 #endif1374 1361 1375 1362 Bool bInterpolateFirst = true; … … 1390 1377 if ( bInterpolateFirst ) 1391 1378 { 1392 #if H_3D_FIX_REN_WARNING1393 1379 std::cout << "Interpolating camera parameters for virtual view(s): " ; 1394 #else1395 std::cout << "Interpolating Camera Parameters for View(s) " ;1396 #endif1397 1380 bInterpolateFirst = false; 1398 1381 } … … 1498 1481 } 1499 1482 1500 #if H_3D_FIX_REN_WARNING1501 1483 Bool 1502 1484 TAppComCamPara::xIsIn( std::vector<Int>& rVec, Int iElem) … … 1509 1491 return bFound; 1510 1492 } 1511 #endif1512 1493 1513 1494 Int TAppComCamPara::getRelDistLeft( Int iSynthViewIdx, Int iLeftViewIdx, Int iRightViewIdx ) -
trunk/source/Lib/TAppCommon/TAppComCamPara.h
r608 r655 125 125 Bool xGetLeftRightView ( Int iView, std::vector<Int> aiSortedViews, Int& riLeftView, Int& riRightView, Int& riLeftSortedViewIdx, Int& riRightSortedViewIdx ); 126 126 Void xGetPrevAndNextBaseView ( Int iSourceViewNum, Int iTargetViewNum, Int& riPrevBaseViewNum, Int& riNextBaseViewNum ); 127 #if !KWU_RC_MADPRED_E0227 127 128 Void xGetZNearZFar ( Int iView, UInt uiFrame, Double& rdZNear, Double& rdZFar ); 128 129 Void xGetGeometryData ( Int dView, UInt uiFrame, Double& rdFocalLength, Double& rdPosition, Double& rdCameraShift, Bool& rbInterpolated ); 130 #endif 129 131 Void xSetupBaseViewsFromCoded (); 130 132 Void xSetupBaseViews ( Char* pchBaseViewNumbers, UInt uiNumBaseViews ); 131 #if H_3D_FIX_REN_WARNING132 133 Bool xIsIn ( std::vector<Int>& rVec, Int iNumber); 133 #endif134 135 134 136 135 // functions for getting and setting scales and offsets … … 220 219 Int** getCodedScale () { return m_aaiCodedScale; } 221 220 Int** getCodedOffset () { return m_aaiCodedOffset; } 221 222 #if KWU_RC_MADPRED_E0227 223 Void xGetZNearZFar ( Int iView, UInt uiFrame, Double& rdZNear, Double& rdZFar ); 224 Void xGetGeometryData ( Int dView, UInt uiFrame, Double& rdFocalLength, Double& rdPosition, Double& rdCameraShift, Bool& rbInterpolated ); 225 #endif 222 226 }; 223 227
Note: See TracChangeset for help on using the changeset viewer.