Lines Matching refs:nimages

1145     int i, j, pos, nimages, ni = 0;  in cvInitIntrinsicParams2D()  local
1154 nimages = npoints->rows + npoints->cols - 1; in cvInitIntrinsicParams2D()
1165 matA.reset(cvCreateMat( 2*nimages, 2, CV_64F )); in cvInitIntrinsicParams2D()
1166 _b.reset(cvCreateMat( 2*nimages, 1, CV_64F )); in cvInitIntrinsicParams2D()
1169 _allH.reset(cvCreateMat( nimages, 9, CV_64F )); in cvInitIntrinsicParams2D()
1172 for( i = 0, pos = 0; i < nimages; i++, pos += ni ) in cvInitIntrinsicParams2D()
1241 int i, nimages, maxPoints = 0, ni = 0, pos, total = 0, nparams, npstep, cn; in cvCalibrateCamera2() local
1260 nimages = npoints->rows*npoints->cols; in cvCalibrateCamera2()
1268 ((rvecs->rows != nimages || (rvecs->cols*cn != 3 && rvecs->cols*cn != 9)) && in cvCalibrateCamera2()
1269 (rvecs->rows != 1 || rvecs->cols != nimages || cn != 3)) ) in cvCalibrateCamera2()
1279 ((tvecs->rows != nimages || tvecs->cols*cn != 3) && in cvCalibrateCamera2()
1280 (tvecs->rows != 1 || tvecs->cols != nimages || cn != 3)) ) in cvCalibrateCamera2()
1300 for( i = 0; i < nimages; i++ ) in cvCalibrateCamera2()
1319 nparams = NINTRINSIC + nimages*6; in cvCalibrateCamera2()
1431 for( i = 0, pos = 0; i < nimages; i++, pos += ni ) in cvCalibrateCamera2()
1470 for( i = 0, pos = 0; i < nimages; i++, pos += ni ) in cvCalibrateCamera2()
1530 for( i = 0; i < nimages; i++ ) in cvCalibrateCamera2()
1536 if( rvecs->rows == nimages && rvecs->cols*CV_MAT_CN(rvecs->type) == 9 ) in cvCalibrateCamera2()
1652 int i, k, p, ni = 0, ofs, nimages, pointsTotal, maxPoints = 0; in cvStereoCalibrate() local
1667 nimages = _npoints->cols + _npoints->rows - 1; in cvStereoCalibrate()
1671 for( i = 0, pointsTotal = 0; i < nimages; i++ ) in cvStereoCalibrate()
1743 nparams = 6*(nimages+1) + (recomputeIntrinsics ? NINTRINSIC*2 : 0); in cvStereoCalibrate()
1746 RT0.reset(cvCreateMat( 6, nimages, CV_64F )); in cvStereoCalibrate()
1798 for( i = ofs = 0; i < nimages; ofs += ni, i++ ) in cvStereoCalibrate()
1832 RT0->data.db[i + nimages] = t[0][1]; in cvStereoCalibrate()
1833 RT0->data.db[i + nimages*2] = t[0][2]; in cvStereoCalibrate()
1834 RT0->data.db[i + nimages*3] = t[1][0]; in cvStereoCalibrate()
1835 RT0->data.db[i + nimages*4] = t[1][1]; in cvStereoCalibrate()
1836 RT0->data.db[i + nimages*5] = t[1][2]; in cvStereoCalibrate()
1842 qsort( RT0->data.db + i*nimages, nimages, CV_ELEM_SIZE(RT0->type), dbCmp ); in cvStereoCalibrate()
1843 solver.param->data.db[i] = nimages % 2 != 0 ? RT0->data.db[i*nimages + nimages/2] : in cvStereoCalibrate()
1844 (RT0->data.db[i*nimages + nimages/2 - 1] + RT0->data.db[i*nimages + nimages/2])*0.5; in cvStereoCalibrate()
1850 double* iparam = solver.param->data.db + (nimages+1)*6 + k*NINTRINSIC; in cvStereoCalibrate()
1894 double* iparam = solver.param->data.db + (nimages+1)*6; in cvStereoCalibrate()
1895 double* ipparam = solver.prevParam->data.db + (nimages+1)*6; in cvStereoCalibrate()
1934 for( i = ofs = 0; i < nimages; ofs += ni, i++ ) in cvStereoCalibrate()
1975 int iofs = (nimages+1)*6 + k*NINTRINSIC, eofs = (i+1)*6; in cvStereoCalibrate()
2970 int nimages = (int)objectPoints.total(); in collectCalibrationData() local
2972 CV_Assert(nimages > 0 && nimages == (int)imagePoints1.total() && in collectCalibrationData()
2973 (!imgPtMat2 || nimages == (int)imagePoints2.total())); in collectCalibrationData()
2975 for( i = 0; i < nimages; i++ ) in collectCalibrationData()
2988 npoints.create(1, (int)nimages, CV_32S); in collectCalibrationData()
3002 for( i = 0; i < nimages; i++, j += ni ) in collectCalibrationData()
3229 size_t nimages = _objectPoints.total(); in calibrateCamera() local
3230 CV_Assert( nimages > 0 ); in calibrateCamera()
3231 Mat objPt, imgPt, npoints, rvecM((int)nimages, 3, CV_64FC1), tvecM((int)nimages, 3, CV_64FC1); in calibrateCamera()
3245 _rvecs.create((int)nimages, 1, CV_64FC3); in calibrateCamera()
3247 _tvecs.create((int)nimages, 1, CV_64FC3); in calibrateCamera()
3249 for( i = 0; i < (int)nimages; i++ ) in calibrateCamera()