Lines Matching refs:numImages
51 void icvReconstructPoints4DStatus(CvMat** projPoints, CvMat **projMatrs, CvMat** presPoints, CvMat *points4D,int numImages,CvMat **projError=0);
204 void icvComputeDerivateProjAll(CvMat *points4D, CvMat **projMatrs, CvMat **pointPres, int numImages,CvMat **projDerives)
210 if( numImages < 1 )
221 for( currImage = 0; currImage < numImages; currImage++ )
341 void icvComputeDerivatePointsAll(CvMat *points4D, CvMat **projMatrs, CvMat **pointPres, int numImages,CvMat **pointDerives)
347 if( numImages < 1 )
358 for( currImage = 0; currImage < numImages; currImage++ )
367 void icvComputeMatrixVAll(int numImages,CvMat **pointDeriv,CvMat **presPoints, CvMat **matrV)
375 if( numImages < 1 )
391 CV_CALL(shifts = (int*)cvAlloc(sizeof(int)*numImages));
392 memset(shifts,0,sizeof(int)*numImages);
403 for( currImage = 0; currImage < numImages; currImage++ )
421 for( currImage = 0; currImage < numImages; currImage++ )
436 void icvComputeMatrixUAll(int numImages,CvMat **projDeriv,CvMat** matrU)
441 if( numImages < 1 )
454 for( currImage = 0; currImage < numImages; currImage++ )
463 void icvComputeMatrixW(int numImages, CvMat **projDeriv, CvMat **pointDeriv, CvMat **presPoints, CvMat *matrW)
469 if( numImages < 1 )
487 if( matrW->rows != numImages*12 || matrW->cols != numPoints*4 )
499 for( currImage = 0; currImage < numImages; currImage++ )
544 for( currImage = 0; currImage< numImages; currImage++ )
565 void icvComputeJacErrorProj(int numImages,CvMat **projDeriv,CvMat **projErrors,CvMat *jacProjErr )
571 if( numImages < 1 )
583 if( jacProjErr->rows != numImages*12 || jacProjErr->cols != 1 )
591 for( currImage = 0; currImage < numImages; currImage++ )
611 for( currImage = 0; currImage < numImages; currImage++ )
632 void icvComputeJacErrorPoint(int numImages,CvMat **pointDeriv,CvMat **projErrors, CvMat **presPoints,CvMat *jacPointErr )
640 if( numImages < 1 )
671 CV_CALL(shifts = (int*)cvAlloc(sizeof(int)*numImages));
672 memset(shifts,0,sizeof(int)*numImages);
680 for( currImage = 0; currImage < numImages; currImage++ )
699 for( currImage = 0; currImage < numImages; currImage++ )
739 CvMat *points4D,int numImages,CvMat **projError)
749 if( numImages < 2 )
784 CV_CALL(matrA_dat = (double*)cvAlloc(3*numImages * 4 * sizeof(double)));
785 CV_CALL(matrW_dat = (double*)cvAlloc(3*numImages * 4 * sizeof(double)));
793 for( currImage = 0; currImage < numImages; currImage++ )
815 for( currImage = 0; currImage < numImages; currImage++ )/* For each view */
851 for( currImage = 0; currImage < numImages; currImage++ )
900 void icvProjPointsStatusFunc( int numImages, CvMat *points4D, CvMat **projMatrs, CvMat **pointsPres, CvMat **projPoints)
906 if( numImages < 1 )
948 for( currImage = 0; currImage < numImages; currImage++ )
1038 CvMat** pointsPres, int numImages,
1043 int icvDeleteSparsInPoints( int numImages,
1054 CvMat** pointsPres, int numImages,
1096 if( numImages < 1 )
1133 CV_CALL( vectorX_projMatrs = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages));
1136 CV_CALL( newVectorX_projMatrs = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages));
1144 for( currImage = 0; currImage < numImages; currImage++ )
1188 for( currImage = 0; currImage < numImages; currImage++ )
1196 icvReconstructPoints4DStatus(observProjPoints, projMatrs, pointsPres, vectorX_points4D, numImages);
1201 CV_CALL( observVisPoints = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1202 CV_CALL( projVisPoints = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1203 CV_CALL( errorProjPoints = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1204 CV_CALL( DerivProj = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1205 CV_CALL( DerivPoint = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1206 CV_CALL( matrW = cvCreateMat(12*numImages,4*numPoints,CV_64F) );
1207 CV_CALL( matrsUk = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1208 CV_CALL( workMatrsUk = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages) );
1213 CV_CALL( jacProjErr = cvCreateMat(12*numImages,1,CV_64F) );
1224 for( currImage = 0; currImage < numImages; currImage++ )
1265 CV_CALL( matrTmpSys1 = cvCreateMat(numPoints*4, numImages*12, CV_64F) );
1266 CV_CALL( matrSysDeltaP = cvCreateMat(numImages*12, numImages*12, CV_64F) );
1268 CV_CALL( vectSysDeltaP = cvCreateMat(numImages*12,1,CV_64F) );
1269 CV_CALL( deltaP = cvCreateMat(numImages*12,1,CV_64F) );
1288 icvProjPointsStatusFunc(numImages, vectorX_points4D, vectorX_projMatrs, pointsPres, projVisPoints);
1293 for( currImage = 0; currImage < numImages; currImage++ )
1320 for( currImage = 0; currImage < numImages; currImage++)
1353 for( int i=0;i<numImages;i++ )
1364 icvComputeDerivateProjAll(vectorX_points4D,vectorX_projMatrs,pointsPres,numImages,DerivProj);
1367 icvComputeDerivatePointsAll(vectorX_points4D,vectorX_projMatrs,pointsPres,numImages,DerivPoint);
1370 icvComputeMatrixUAll(numImages,DerivProj,matrsUk);
1371 icvComputeMatrixVAll(numImages,DerivPoint,pointsPres,matrsVi);
1372 icvComputeMatrixW(numImages,DerivProj,DerivPoint,pointsPres,matrW);
1382 for( i = 0; i < numImages; i++ )
1399 icvComputeJacErrorProj(numImages, DerivProj, errorProjPoints, jacProjErr);
1400 icvComputeJacErrorPoint(numImages, DerivPoint, errorProjPoints, pointsPres, jacPointErr);
1413 for( currImage = 0; currImage < numImages; currImage++ )
1425 for( i = 0; i < numImages; i++ )
1462 for( currImage = 0; currImage< numImages; currImage++ )
1479 for( currImage = 0; currImage < numImages; currImage++ )
1500 for( currImage = 0; currImage < numImages; currImage++ )
1531 for( currImage = 0; currImage < numImages; currImage++ )
1550 for( int j = 0; j < numImages * 12; j++ )
1570 for( currImage = 0; currImage < numImages; currImage++ )
1595 icvProjPointsStatusFunc(numImages, newVectorX_points4D, newVectorX_projMatrs, pointsPres, projVisPoints);
1598 for( currImage = 0; currImage < numImages; currImage++ )
1638 for( currImage = 0; currImage < numImages; currImage++)
1670 for( currImage = 0; currImage < numImages; currImage++ )
1707 for( currImage = 0; currImage < numImages; currImage++ )
1739 for( currImage = 0; currImage < numImages; currImage++ )
1770 icvFreeMatrixArray(&vectorX_projMatrs,numImages);
1771 icvFreeMatrixArray(&newVectorX_projMatrs,numImages);
1772 icvFreeMatrixArray(&observVisPoints,numImages);
1773 icvFreeMatrixArray(&projVisPoints,numImages);
1774 icvFreeMatrixArray(&errorProjPoints,numImages);
1775 icvFreeMatrixArray(&DerivProj,numImages);
1776 icvFreeMatrixArray(&DerivPoint,numImages);
1777 icvFreeMatrixArray(&matrsUk,numImages);
1778 icvFreeMatrixArray(&workMatrsUk,numImages);