Lines Matching refs:CV_CALL

126     CV_CALL( cvPrepareTrainData( 0,  in train()
148 CV_CALL( count = (CvMat**)cvAlloc( data_size )); in train()
157 CV_CALL( c = cvCreateMat( 1, nclasses, CV_64FC1 )); in train()
161 CV_CALL(count[cls] = cvCreateMat( 1, var_count, CV_32SC1 )); in train()
162 CV_CALL(sum[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train()
163 CV_CALL(productsum[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train()
164 CV_CALL(avg[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train()
165 CV_CALL(inv_eigen_values[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train()
166 CV_CALL(cov_rotate_mats[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train()
167 CV_CALL(cvZero( count[cls] )); in train()
168 CV_CALL(cvZero( sum[cls] )); in train()
169 CV_CALL(cvZero( productsum[cls] )); in train()
170 CV_CALL(cvZero( avg[cls] )); in train()
171 CV_CALL(cvZero( inv_eigen_values[cls] )); in train()
172 CV_CALL(cvZero( cov_rotate_mats[cls] )); in train()
193 CV_CALL( cov = cvCreateMat( _var_count, _var_count, CV_64FC1 )); in train()
255 CV_CALL( cvCompleteSymm( cov, 1 )); in train()
256 CV_CALL( cvSVD( cov, w, cov_rotate_mats[cls], 0, CV_SVD_U_T )); in train()
257 CV_CALL( cvMaxS( w, min_variation, w )); in train()
261 CV_CALL( cvDiv( NULL, w, w )); in train()
330 CV_CALL( buffer = cvAlloc( size )); in predict()
352 CV_CALL(cvGEMM( &diff, u, 1, 0, 0, &diff, CV_GEMM_B_T )); in predict()
409 CV_CALL( cvWriteInt( fs, "var_count", var_count )); in write()
410 CV_CALL( cvWriteInt( fs, "var_all", var_all )); in write()
413 CV_CALL( cvWrite( fs, "var_idx", var_idx )); in write()
414 CV_CALL( cvWrite( fs, "cls_labels", cls_labels )); in write()
416 CV_CALL( cvStartWriteStruct( fs, "count", CV_NODE_SEQ )); in write()
418 CV_CALL( cvWrite( fs, NULL, count[i] )); in write()
419 CV_CALL( cvEndWriteStruct( fs )); in write()
421 CV_CALL( cvStartWriteStruct( fs, "sum", CV_NODE_SEQ )); in write()
423 CV_CALL( cvWrite( fs, NULL, sum[i] )); in write()
424 CV_CALL( cvEndWriteStruct( fs )); in write()
426 CV_CALL( cvStartWriteStruct( fs, "productsum", CV_NODE_SEQ )); in write()
428 CV_CALL( cvWrite( fs, NULL, productsum[i] )); in write()
429 CV_CALL( cvEndWriteStruct( fs )); in write()
431 CV_CALL( cvStartWriteStruct( fs, "avg", CV_NODE_SEQ )); in write()
433 CV_CALL( cvWrite( fs, NULL, avg[i] )); in write()
434 CV_CALL( cvEndWriteStruct( fs )); in write()
436 CV_CALL( cvStartWriteStruct( fs, "inv_eigen_values", CV_NODE_SEQ )); in write()
438 CV_CALL( cvWrite( fs, NULL, inv_eigen_values[i] )); in write()
439 CV_CALL( cvEndWriteStruct( fs )); in write()
441 CV_CALL( cvStartWriteStruct( fs, "cov_rotate_mats", CV_NODE_SEQ )); in write()
443 CV_CALL( cvWrite( fs, NULL, cov_rotate_mats[i] )); in write()
444 CV_CALL( cvEndWriteStruct( fs )); in write()
446 CV_CALL( cvWrite( fs, "c", c )); in write()
469 CV_CALL( var_count = cvReadIntByName( fs, root_node, "var_count", -1 )); in read()
470 CV_CALL( var_all = cvReadIntByName( fs, root_node, "var_all", -1 )); in read()
471 CV_CALL( var_idx = (CvMat*)cvReadByName( fs, root_node, "var_idx" )); in read()
472 CV_CALL( cls_labels = (CvMat*)cvReadByName( fs, root_node, "cls_labels" )); in read()
483 CV_CALL( count = (CvMat**)cvAlloc( data_size )); in read()
492 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "count" )); in read()
496 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
499 CV_CALL( count[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
503 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "sum" )); in read()
507 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
510 CV_CALL( sum[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
514 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "productsum" )); in read()
518 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
521 CV_CALL( productsum[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
525 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "avg" )); in read()
529 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
532 CV_CALL( avg[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
536 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "inv_eigen_values" )); in read()
540 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
543 CV_CALL( inv_eigen_values[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
547 CV_CALL( node = cvGetFileNodeByName( fs, root_node, "cov_rotate_mats" )); in read()
551 CV_CALL( cvStartReadSeq( seq, &reader, 0 )); in read()
554 CV_CALL( cov_rotate_mats[i] = (CvMat*)cvRead( fs, (CvFileNode*)reader.ptr )); in read()
558 CV_CALL( c = (CvMat*)cvReadByName( fs, root_node, "c" )); in read()