Lines Matching refs:results
281 float CvNormalBayesClassifier::predict( const CvMat* samples, CvMat* results ) const
304 if( samples->rows > 1 && !results )
306 "When the number of input samples is >1, the output vector of results must be passed" );
308 if( results )
310 if( !CV_IS_MAT(results) || CV_MAT_TYPE(results->type) != CV_32FC1 &&
311 CV_MAT_TYPE(results->type) != CV_32SC1 ||
312 results->cols != 1 && results->rows != 1 ||
313 results->cols + results->rows - 1 != samples->rows )
317 rtype = CV_MAT_TYPE(results->type);
318 rstep = CV_IS_MAT_CONT(results->type) ? 1 : results->step/CV_ELEM_SIZE(rtype);
368 if( results )
371 results->data.i[k*rstep] = ival;
373 results->data.fl[k*rstep] = (float)ival;