Lines Matching refs:currImage

220     int currImage;  in icvComputeDerivateProjAll()  local
221 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeDerivateProjAll()
223 …icvComputeDerivateProj(points4D,projMatrs[currImage], pointPres[currImage], projDerives[currImage]… in icvComputeDerivateProjAll()
357 int currImage; in icvComputeDerivatePointsAll() local
358 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeDerivatePointsAll()
360 …icvComputeDerivatePoints(points4D, projMatrs[currImage], pointPres[currImage], pointDerives[currIm… in icvComputeDerivatePointsAll()
387 int currImage; in icvComputeMatrixVAll() local
403 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeMatrixVAll()
405 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvComputeMatrixVAll()
407 sum += cvmGet(pointDeriv[currImage],0,shifts[currImage]*4+i) * in icvComputeMatrixVAll()
408 cvmGet(pointDeriv[currImage],0,shifts[currImage]*4+j); in icvComputeMatrixVAll()
410 sum += cvmGet(pointDeriv[currImage],1,shifts[currImage]*4+i) * in icvComputeMatrixVAll()
411 cvmGet(pointDeriv[currImage],1,shifts[currImage]*4+j); in icvComputeMatrixVAll()
421 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeMatrixVAll()
423 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvComputeMatrixVAll()
425 shifts[currImage]++; in icvComputeMatrixVAll()
453 int currImage; in icvComputeMatrixUAll() local
454 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeMatrixUAll()
456 cvMulTransposed(projDeriv[currImage],matrU[currImage],1); in icvComputeMatrixUAll()
497 int currImage; in icvComputeMatrixW() local
499 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeMatrixW()
506 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvComputeMatrixW()
512 sum = cvmGet(projDeriv[currImage],currVis*2+0,currLine) * in icvComputeMatrixW()
513 cvmGet(pointDeriv[currImage],0,currVis*4+currCol); in icvComputeMatrixW()
515 sum += cvmGet(projDeriv[currImage],currVis*2+1,currLine) * in icvComputeMatrixW()
516 cvmGet(pointDeriv[currImage],1,currVis*4+currCol); in icvComputeMatrixW()
518 cvmSet(matrW,currImage*12+currLine,currPoint*4+currCol,sum); in icvComputeMatrixW()
526 cvmSet(matrW,currImage*12+currLine,currPoint*4+currCol,0); in icvComputeMatrixW()
537 int currPoint,currImage; in icvComputeMatrixW() local
544 for( currImage = 0; currImage< numImages; currImage++ ) in icvComputeMatrixW()
549 double val = cvmGet(matrW, currImage * 12 + i, currPoint * 4 + currRow); in icvComputeMatrixW()
590 int currImage; in icvComputeJacErrorProj() local
591 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeJacErrorProj()
595 int num = projDeriv[currImage]->rows; in icvComputeJacErrorProj()
599 sum += cvmGet(projDeriv[currImage],i,currCol) * in icvComputeJacErrorProj()
600 cvmGet(projErrors[currImage],i%2,i/2); in icvComputeJacErrorProj()
602 cvmSet(jacProjErr,currImage*12+currCol,0,sum); in icvComputeJacErrorProj()
610 int currImage; in icvComputeJacErrorProj() local
611 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeJacErrorProj()
613 fprintf(file,"\nImage=%d\n",currImage); in icvComputeJacErrorProj()
617 double val = cvmGet(jacProjErr, currImage * 12 + currRow, 0); in icvComputeJacErrorProj()
669 int currImage; in icvComputeJacErrorPoint() local
680 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeJacErrorPoint()
682 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvComputeJacErrorPoint()
684 sum += cvmGet(pointDeriv[currImage],0,shifts[currImage]*4+currCoord) * in icvComputeJacErrorPoint()
685 cvmGet(projErrors[currImage],0,shifts[currImage]);//currVis); in icvComputeJacErrorPoint()
687 sum += cvmGet(pointDeriv[currImage],1,shifts[currImage]*4+currCoord) * in icvComputeJacErrorPoint()
688 cvmGet(projErrors[currImage],1,shifts[currImage]);//currVis); in icvComputeJacErrorPoint()
699 for( currImage = 0; currImage < numImages; currImage++ ) in icvComputeJacErrorPoint()
701 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvComputeJacErrorPoint()
703 shifts[currImage]++; in icvComputeJacErrorPoint()
774 int currImage; in icvReconstructPoints4DStatus() local
793 for( currImage = 0; currImage < numImages; currImage++ ) in icvReconstructPoints4DStatus()
795 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvReconstructPoints4DStatus()
815 for( currImage = 0; currImage < numImages; currImage++ )/* For each view */ in icvReconstructPoints4DStatus()
817 if( cvmGet(presPoints[currImage],0,currPoint) > 0 ) in icvReconstructPoints4DStatus()
820 x = cvmGet(projPoints[currImage],0,currPoint); in icvReconstructPoints4DStatus()
821 y = cvmGet(projPoints[currImage],1,currPoint); in icvReconstructPoints4DStatus()
825 … x * cvmGet(projMatrs[currImage],2,k) - cvmGet(projMatrs[currImage],0,k); in icvReconstructPoints4DStatus()
828 … y * cvmGet(projMatrs[currImage],2,k) - cvmGet(projMatrs[currImage],1,k); in icvReconstructPoints4DStatus()
831 … x * cvmGet(projMatrs[currImage],1,k) - y * cvmGet(projMatrs[currImage],0,k); in icvReconstructPoints4DStatus()
851 for( currImage = 0; currImage < numImages; currImage++ ) in icvReconstructPoints4DStatus()
863 if( cvmGet(presPoints[currImage],0,currPoint) > 0) in icvReconstructPoints4DStatus()
867 cvmMul(projMatrs[currImage],&point4D,&point3D); in icvReconstructPoints4DStatus()
872 dx = cvmGet(projPoints[currImage],0,currPoint) - x; in icvReconstructPoints4DStatus()
873 dy = cvmGet(projPoints[currImage],1,currPoint) - y; in icvReconstructPoints4DStatus()
876 cvmSet(projError[currImage],0,currPoint,dx); in icvReconstructPoints4DStatus()
877 cvmSet(projError[currImage],1,currPoint,dy); in icvReconstructPoints4DStatus()
947 int currImage; in icvProjPointsStatusFunc() local
948 for( currImage = 0; currImage < numImages; currImage++ ) in icvProjPointsStatusFunc()
955 if( cvmGet(pointsPres[currImage],0,currPoint) > 0 ) in icvProjPointsStatusFunc()
973 cvmMul(projMatrs[currImage],&point4D,&point3D); in icvProjPointsStatusFunc()
975 cvmSet(projPoints[currImage],0,currVisPoint,point3D_dat[0]/w); in icvProjPointsStatusFunc()
976 cvmSet(projPoints[currImage],1,currVisPoint,point3D_dat[1]/w); in icvProjPointsStatusFunc()
1141 int currImage; in cvOptimizeLevenbergMarquardtBundle() local
1144 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1147 if( !CV_IS_MAT(projMatrs[currImage]) ) in cvOptimizeLevenbergMarquardtBundle()
1151 if( projMatrs[currImage]->rows != 3 || projMatrs[currImage]->cols != 4 ) in cvOptimizeLevenbergMarquardtBundle()
1157 if( !CV_IS_MAT(observProjPoints[currImage]) ) in cvOptimizeLevenbergMarquardtBundle()
1161 … if( observProjPoints[currImage]->rows != 2 || observProjPoints[currImage]->cols != numPoints ) in cvOptimizeLevenbergMarquardtBundle()
1166 if( !CV_IS_MAT(pointsPres[currImage]) ) in cvOptimizeLevenbergMarquardtBundle()
1170 if( pointsPres[currImage]->rows != 1 || pointsPres[currImage]->cols != numPoints ) in cvOptimizeLevenbergMarquardtBundle()
1175 if( !CV_IS_MAT(resultProjMatrs[currImage]) ) in cvOptimizeLevenbergMarquardtBundle()
1179 if( resultProjMatrs[currImage]->rows != 3 || resultProjMatrs[currImage]->cols != 4 ) in cvOptimizeLevenbergMarquardtBundle()
1188 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1190 CV_CALL( vectorX_projMatrs[currImage] = cvCreateMat(3,4,CV_64F)); in cvOptimizeLevenbergMarquardtBundle()
1191 CV_CALL( newVectorX_projMatrs[currImage] = cvCreateMat(3,4,CV_64F)); in cvOptimizeLevenbergMarquardtBundle()
1192 cvCopy(projMatrs[currImage],vectorX_projMatrs[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1224 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1226 CV_CALL( matrsUk[currImage] = cvCreateMat(12,12,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1227 CV_CALL( workMatrsUk[currImage] = cvCreateMat(12,12,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1232 if( cvmGet(pointsPres[currImage],0,currPoint) > 0 ) in cvOptimizeLevenbergMarquardtBundle()
1241 CV_CALL( observVisPoints[currImage] = cvCreateMat(2,numVisPoint,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1242 CV_CALL( projVisPoints[currImage] = cvCreateMat(2,numVisPoint,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1245 CV_CALL( errorProjPoints[currImage] = cvCreateMat(2,numVisPoint,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1248 CV_CALL( DerivProj[currImage] = cvCreateMat(2*numVisPoint,12,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1249 CV_CALL( DerivPoint[currImage] = cvCreateMat(2,numVisPoint*4,CV_64F) ); in cvOptimizeLevenbergMarquardtBundle()
1255 if( cvmGet(pointsPres[currImage],0,currPoint) > 0 ) in cvOptimizeLevenbergMarquardtBundle()
1257 … cvmSet(observVisPoints[currImage],0,currVisPoint,cvmGet(observProjPoints[currImage],0,currPoint)); in cvOptimizeLevenbergMarquardtBundle()
1258 … cvmSet(observVisPoints[currImage],1,currVisPoint,cvmGet(observProjPoints[currImage],1,currPoint)); in cvOptimizeLevenbergMarquardtBundle()
1293 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1295 cvSub(observVisPoints[currImage],projVisPoints[currImage],errorProjPoints[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1296 double currNorm = cvNorm(errorProjPoints[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1319 int currImage; in cvOptimizeLevenbergMarquardtBundle() local
1320 for( currImage = 0; currImage < numImages; currImage++) in cvOptimizeLevenbergMarquardtBundle()
1322 fprintf(file,"\nImage=%d\n",currImage); in cvOptimizeLevenbergMarquardtBundle()
1323 int numPn = errorProjPoints[currImage]->cols; in cvOptimizeLevenbergMarquardtBundle()
1327 ex = cvmGet(errorProjPoints[currImage],0,currPoint); in cvOptimizeLevenbergMarquardtBundle()
1328 ey = cvmGet(errorProjPoints[currImage],1,currPoint); in cvOptimizeLevenbergMarquardtBundle()
1413 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1415 cvCopy(matrsUk[currImage],workMatrsUk[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1462 for( currImage = 0; currImage< numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1467 cvmSet(workMatrsUk[currImage],i,i,cvmGet(matrsUk[currImage],i,i)*(1+alpha)); in cvOptimizeLevenbergMarquardtBundle()
1479 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1487 cvmGet(matrW,currImage*12+currCol,currV*4+i); in cvOptimizeLevenbergMarquardtBundle()
1489 cvmSet(matrTmpSys1,currV*4+currRowV,currImage*12+currCol,sum); in cvOptimizeLevenbergMarquardtBundle()
1500 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1503 cvGetSubRect(matrSysDeltaP,&subMatr,cvRect(currImage*12,currImage*12,12,12)); in cvOptimizeLevenbergMarquardtBundle()
1504 cvSub(&subMatr,workMatrsUk[currImage],&subMatr); in cvOptimizeLevenbergMarquardtBundle()
1530 int currImage; in cvOptimizeLevenbergMarquardtBundle() local
1531 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1533 fprintf(file,"\nImage=%d\n",currImage); in cvOptimizeLevenbergMarquardtBundle()
1538 val = cvmGet(deltaP,currImage*12+i,0); in cvOptimizeLevenbergMarquardtBundle()
1570 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1576 cvmSet(newVectorX_projMatrs[currImage],i,j, in cvOptimizeLevenbergMarquardtBundle()
1577 … cvmGet(vectorX_projMatrs[currImage],i,j) + cvmGet(deltaP,currImage*12+i*4+j,0)); in cvOptimizeLevenbergMarquardtBundle()
1598 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1600 … cvSub(observVisPoints[currImage],projVisPoints[currImage],errorProjPoints[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1601 double currNorm = cvNorm(errorProjPoints[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1608 … fprintf(file,"\n----- test 13,01 currImage=%d currNorm=%lf -----\n",currImage,currNorm); in cvOptimizeLevenbergMarquardtBundle()
1637 int currImage; in cvOptimizeLevenbergMarquardtBundle()
1638 for( currImage = 0; currImage < numImages; currImage++) in cvOptimizeLevenbergMarquardtBundle()
1640 fprintf(file,"\nImage=%d\n",currImage); in cvOptimizeLevenbergMarquardtBundle()
1641 int numPn = errorProjPoints[currImage]->cols; in cvOptimizeLevenbergMarquardtBundle()
1645 ex = cvmGet(errorProjPoints[currImage],0,currPoint); in cvOptimizeLevenbergMarquardtBundle()
1646 ey = cvmGet(errorProjPoints[currImage],1,currPoint); in cvOptimizeLevenbergMarquardtBundle()
1670 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1672 … currNorm1 = cvNorm(newVectorX_projMatrs[currImage],vectorX_projMatrs[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1673 currNorm2 = cvNorm(newVectorX_projMatrs[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1707 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1709 cvCopy(newVectorX_projMatrs[currImage],vectorX_projMatrs[currImage]); in cvOptimizeLevenbergMarquardtBundle()
1739 for( currImage = 0; currImage < numImages; currImage++ ) in cvOptimizeLevenbergMarquardtBundle()
1741 cvCopy(newVectorX_projMatrs[currImage],resultProjMatrs[currImage]); in cvOptimizeLevenbergMarquardtBundle()