Lines Matching full:nparams
62 CvLevMarq::CvLevMarq( int nparams, int nerrs, CvTermCriteria criteria0, bool _completeSymmFlag )
65 init(nparams, nerrs, criteria0, _completeSymmFlag);
87 void CvLevMarq::init( int nparams, int nerrs, CvTermCriteria criteria0, bool _completeSymmFlag )
89 if( !param || param->rows != nparams || nerrs != (err ? err->rows : 0) )
91 mask = cvCreateMat( nparams, 1, CV_8U );
93 prevParam = cvCreateMat( nparams, 1, CV_64F );
94 param = cvCreateMat( nparams, 1, CV_64F );
95 JtJ = cvCreateMat( nparams, nparams, CV_64F );
96 JtJN = cvCreateMat( nparams, nparams, CV_64F );
97 JtJV = cvCreateMat( nparams, nparams, CV_64F );
98 JtJW = cvCreateMat( nparams, 1, CV_64F );
99 JtErr = cvCreateMat( nparams, 1, CV_64F );
102 J = cvCreateMat( nerrs, nparams, CV_64F );
260 int i, j, nparams = param->rows;
262 for( i = 0; i < nparams; i++ )
265 double *row = JtJ->data.db + i*nparams, *col = JtJ->data.db + i;
266 for( j = 0; j < nparams; j++ )
267 row[j] = col[j*nparams] = 0;
277 for( i = 0; i < nparams; i++ )
1461 int i, nimages, maxPoints = 0, ni = 0, pos, total = 0, nparams, npstep, cn;
1535 nparams = NINTRINSIC + nimages*6;
1588 solver.init( nparams, 0, cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS,30,DBL_EPSILON) );
1855 int nparams;
1945 nparams = 6*(nimages+1) + (recomputeIntrinsics ? NINTRINSIC*2 : 0);
1950 solver.init( nparams
1953 uchar* imask = solver.mask->data.ptr + nparams - NINTRINSIC*2;