Home | History | Annotate | Download | only in src

Lines Matching full:coeffs

266 cvSolveCubic( const CvMat* coeffs, CvMat* roots )
278 if( !CV_IS_MAT(coeffs) )
279 CV_ERROR( !coeffs ? CV_StsNullPtr : CV_StsBadArg, "Input parameter is not a valid matrix" );
284 if( (CV_MAT_TYPE(coeffs->type) != CV_32FC1 && CV_MAT_TYPE(coeffs->type) != CV_64FC1) ||
289 coeff_count = coeffs->rows + coeffs->cols - 1;
291 if( (coeffs->rows != 1 && coeffs->cols != 1) || (coeff_count != 3 && coeff_count != 4) )
300 if( CV_MAT_TYPE(coeffs->type) == CV_32FC1 )
302 const float* c = coeffs->data.fl;
303 if( coeffs->rows > 1 )
304 step = coeffs->step/sizeof(c[0]);
313 const double* c = coeffs->data.db;
314 if( coeffs->rows > 1 )
315 step = coeffs->step/sizeof(c[0]);
653 CV_ERROR(CV_StsUnsupportedFormat, "coeffs must be either CV_32FC1 or CV_64FC1");