Lines Matching refs:CV_CALL
1333 CV_CALL( decision_func = df = in do_train()
1345 CV_CALL( df->alpha = (double*)cvMemStorageAlloc( storage, sv_count*sizeof(df->alpha[0])) ); in do_train()
1346 CV_CALL( sv = (float**)cvMemStorageAlloc( storage, sv_count*sizeof(sv[0]))); in do_train()
1352 CV_CALL( sv[k] = (float*)cvMemStorageAlloc( storage, sample_size )); in do_train()
1377 CV_CALL( class_weights = cvCreateMat( cw->rows, cw->cols, CV_64F )); in do_train()
1378 CV_CALL( cvConvert( cw, class_weights )); in do_train()
1379 CV_CALL( cvScale( class_weights, class_weights, params.C )); in do_train()
1382 CV_CALL( decision_func = df = (CvSVMDecisionFunc*)cvAlloc( in do_train()
1385 CV_CALL( sv_tab = (int*)cvMemStorageAlloc( temp_storage, sample_count*sizeof(sv_tab[0]) )); in do_train()
1387 CV_CALL( class_ranges = (int*)cvMemStorageAlloc( temp_storage, in do_train()
1389 CV_CALL( temp_samples = (const float**)cvMemStorageAlloc( temp_storage, in do_train()
1391 CV_CALL( temp_y = (schar*)cvMemStorageAlloc( temp_storage, sample_count)); in do_train()
1455 CV_CALL( df->alpha = (double*)cvMemStorageAlloc( temp_storage, in do_train()
1457 CV_CALL( df->sv_index = (int*)cvMemStorageAlloc( temp_storage, in do_train()
1490 CV_CALL( sv = (float**)cvMemStorageAlloc( storage, sv_total*sizeof(sv[0]))); in do_train()
1496 CV_CALL( sv[k] = (float*)cvMemStorageAlloc( storage, sample_size )); in do_train()
1542 CV_CALL( set_params( _params )); in train()
1547 CV_CALL( cvPrepareTrainData( "CvSVM::train", _train_data, CV_ROW_SAMPLE, in train()
1564 CV_CALL( storage = cvCreateMemStorage(block_size)); in train()
1565 CV_CALL( temp_storage = cvCreateChildMemStorage(storage)); in train()
1566 CV_CALL( alpha = (double*)cvMemStorageAlloc(temp_storage, sample_count*sizeof(double))); in train()
1629 CV_CALL(set_params( _params )); in train_auto()
1640 CV_CALL(C_grid.check()); in train_auto()
1648 CV_CALL(gamma_grid.check()); in train_auto()
1656 CV_CALL(p_grid.check()); in train_auto()
1664 CV_CALL(nu_grid.check()); in train_auto()
1672 CV_CALL(coef_grid.check()); in train_auto()
1680 CV_CALL(degree_grid.check()); in train_auto()
1700 CV_CALL(cvPrepareTrainData( "CvSVM::train_auto", _train_data, CV_ROW_SAMPLE, in train_auto()
1716 CV_CALL(storage = cvCreateMemStorage(block_size)); in train_auto()
1717 CV_CALL(temp_storage = cvCreateChildMemStorage(storage)); in train_auto()
1718 CV_CALL(alpha = (double*)cvMemStorageAlloc(temp_storage, sample_count*sizeof(double))); in train_auto()
1859 …CV_CALL(ok = do_train( svm_type, sample_count, var_count, samples, responses, temp_storage, alpha … in train_auto()
1897 CV_CALL( cvPreparePredictData( sample, var_all, var_idx, in predict()
1905 CV_CALL( buffer = (Qfloat*)cvStackAlloc( buf_sz )); in predict()
1909 CV_CALL( buffer = (Qfloat*)cvAlloc( buf_sz )); in predict()
2227 CV_CALL( class_labels = (CvMat*)cvReadByName( fs, svm_node, "class_labels" )); in read()
2228 CV_CALL( class_weights = (CvMat*)cvReadByName( fs, svm_node, "class_weights" )); in read()
2229 CV_CALL( var_idx = (CvMat*)cvReadByName( fs, svm_node, "comp_idx" )); in read()
2246 CV_CALL( storage = cvCreateMemStorage( block_size )); in read()
2247 CV_CALL( sv = (float**)cvMemStorageAlloc( storage, in read()
2250 CV_CALL( cvStartReadSeq( sv_node->data.seq, &reader, 0 )); in read()
2259 CV_CALL( sv[i] = (float*)cvMemStorageAlloc( storage, sv_size )); in read()
2260 CV_CALL( cvReadRawData( fs, sv_elem, sv[i], "f" )); in read()
2272 CV_CALL( df = decision_func = (CvSVMDecisionFunc*)cvAlloc( df_count*sizeof(df[0]) )); in read()
2292 CV_CALL( df[i].alpha = (double*)cvMemStorageAlloc( storage, in read()
2296 CV_CALL( cvReadRawData( fs, alpha_node, df[i].alpha, "d" )); in read()
2303 CV_CALL( df[i].sv_index = (int*)cvMemStorageAlloc( storage, in read()
2307 CV_CALL( cvReadRawData( fs, index_node, df[i].sv_index, "i" )); in read()
2340 CV_CALL( dst = icvCreateSVM() );
2357 CV_CALL( dst->storage = cvCreateMemStorage( src->storage->block_size ));
2358 CV_CALL( dst->sv = (float**)cvMemStorageAlloc( dst->storage,
2365 CV_CALL( dst->sv[i] = (float*)cvMemStorageAlloc( dst->storage, sv_size ));
2371 CV_CALL( dst->decision_func = cvAlloc( df_count*sizeof(CvSVMDecisionFunc) ));
2382 CV_CALL( ddf->alpha = (double*)cvMemStorageAlloc( dst->storage,
2388 CV_CALL( ddf->sv_index = (int*)cvMemStorageAlloc( dst->storage,
2648 CV_CALL(rate = cvCrossValidation( train_data, tflag, responses, &cvTrainSVM,
2679 CV_CALL(svm = cvTrainSVM( train_data, tflag, responses, model_params, comp_idx, sample_idx ));