/external/opencv3/modules/ml/src/ |
D | nbayes.cpp | 90 var_idx = __var_idx; in train() 99 var_idx.size() != __var_idx.size() || in train() 100 norm(var_idx, __var_idx, NORM_INF) != 0 || in train() 336 var_idx, cls_labels, results, resultsProb, rawOutput)); in predictProb() 345 fs << "var_count" << (var_idx.empty() ? nallvars : (int)var_idx.total()); in write() 348 if( !var_idx.empty() ) in write() 349 fs << "var_idx" << var_idx; in write() 391 fn["var_idx"] >> var_idx; in read() 437 var_idx.release(); in clear() 449 Mat var_idx, cls_labels, c; member in cv::ml::NormalBayesClassifierImpl
|
/external/opencv/ml/src/ |
D | mlnbayes.cpp | 46 var_idx = 0; in CvNormalBayesClassifier() 75 cvReleaseMat( &var_idx ); in clear() 92 var_idx = 0; in CvNormalBayesClassifier() 139 var_idx = __var_idx; in train() 178 if( _var_count != var_count || _var_all != var_all || !(!_var_idx && !var_idx || in train() 179 _var_idx && var_idx && cvNorm(_var_idx,var_idx,CV_C) < DBL_EPSILON) ) in train() 321 if( var_idx ) in predict() 322 vidx = var_idx->data.i; in predict() 412 if( var_idx ) in write() 413 CV_CALL( cvWrite( fs, "var_idx", var_idx )); in write() [all …]
|
D | ml_inner_functions.cpp | 565 cvPreprocessVarType( const CvMat* var_type, const CvMat* var_idx, in cvPreprocessVarType() argument 601 if( var_idx ) in cvPreprocessVarType() 603 if( !CV_IS_MAT(var_idx) || CV_MAT_TYPE(var_idx->type) != CV_32SC1 || in cvPreprocessVarType() 604 var_idx->rows != 1 && var_idx->cols != 1 || !CV_IS_MAT_CONT(var_idx->type) ) in cvPreprocessVarType() 606 if( var_idx->rows + var_idx->cols - 1 > var_count ) in cvPreprocessVarType() 608 map = var_idx->data.i; in cvPreprocessVarType() 609 var_count = var_idx->rows + var_idx->cols - 1; in cvPreprocessVarType() 840 const CvMat* var_idx, const CvMat* sample_idx, in cvGetTrainSamples() argument 858 var_count = var_idx ? var_idx->cols + var_idx->rows - 1 : in cvGetTrainSamples() 869 copy_data = tflag != CV_ROW_SAMPLE || var_idx || always_copy_data; in cvGetTrainSamples() [all …]
|
D | mltree.cpp | 49 var_idx = var_type = cat_count = cat_ofs = cat_map = in CvDTreeTrainData() 63 var_idx = var_type = cat_count = cat_ofs = cat_map = in CvDTreeTrainData() 220 CV_CALL( var_idx = cvPreprocessIndexArray( _var_idx, var_all )); in CV_IMPLEMENT_QSORT_EX() 221 vidx = var_idx->data.i; in CV_IMPLEMENT_QSORT_EX() 222 var_count = var_idx->rows + var_idx->cols - 1; in CV_IMPLEMENT_QSORT_EX() 234 CV_CALL( var_type0 = cvPreprocessVarType( _var_type, var_idx, var_all, &r_type )); in CV_IMPLEMENT_QSORT_EX() 848 split->var_idx = vi; in new_split_ord() 864 split->var_idx = vi; in new_split_cat() 918 cvReleaseMat( &var_idx ); in clear() 1043 if( var_idx ) in write_params() [all …]
|
D | _ml.h | 290 const CvMat* var_idx, 339 CvMat* cvPreprocessVarType( const CvMat* type_mask, const CvMat* var_idx, 350 const CvMat* var_idx, const CvMat* sample_idx,
|
D | mlsvm.cpp | 1141 var_idx = 0; in CvSVM() 1162 cvReleaseMat( &var_idx ); in clear() 1180 var_idx = 0; in CvSVM() 1553 &responses, &class_labels, &var_idx )); in train() 1706 &responses, &class_labels, &var_idx )); in train_auto() 1897 CV_CALL( cvPreparePredictData( sample, var_all, var_idx, in predict() 2069 if( var_idx ) in write() 2070 cvWrite( fs, "var_idx", var_idx ); in write() 2229 CV_CALL( var_idx = (CvMat*)cvReadByName( fs, svm_node, "comp_idx" )); in read() 2235 if( var_count < var_all && (!var_idx || !CV_IS_MAT(var_idx) || var_idx->cols != var_count) ) in read()
|
D | mlboost.cpp | 186 int i, n = node->sample_count, vi = node->split->var_idx; in calc_node_dir() 1328 if( !raw_mode && (data->cat_var_count > 0 || data->var_idx) ) in predict() 1336 const int* vidx = data->var_idx && !raw_mode ? data->var_idx->data.i : 0; in predict()
|
/external/opencv3/apps/traincascade/ |
D | old_ml_inner_functions.cpp | 496 cvPreprocessVarType( const CvMat* var_type, const CvMat* var_idx, in cvPreprocessVarType() argument 531 if( var_idx ) in cvPreprocessVarType() 533 if( !CV_IS_MAT(var_idx) || CV_MAT_TYPE(var_idx->type) != CV_32SC1 || in cvPreprocessVarType() 534 (var_idx->rows != 1 && var_idx->cols != 1) || !CV_IS_MAT_CONT(var_idx->type) ) in cvPreprocessVarType() 536 if( var_idx->rows + var_idx->cols - 1 > var_count ) in cvPreprocessVarType() 539 var_count = var_idx->rows + var_idx->cols - 1; in cvPreprocessVarType() 770 const CvMat* var_idx, const CvMat* sample_idx, in cvGetTrainSamples() argument 788 var_count = var_idx ? var_idx->cols + var_idx->rows - 1 : in cvGetTrainSamples() 799 copy_data = tflag != CV_ROW_SAMPLE || var_idx || always_copy_data; in cvGetTrainSamples() 807 v_idx = var_idx ? var_idx->data.i : 0; in cvGetTrainSamples() [all …]
|
D | old_ml_data.cpp | 395 void CvMLData::change_var_type( int var_idx, int type ) in change_var_type() argument 407 if ( var_idx < 0 || var_idx >= var_count) in change_var_type() 414 if ( var_types->data.ptr[var_idx] == CV_VAR_CATEGORICAL && type == CV_VAR_ORDERED) in change_var_type() 416 var_types->data.ptr[var_idx] = (uchar)type; in change_var_type() 587 int CvMLData::get_var_type( int var_idx ) const in get_var_type() 589 return var_types->data.ptr[var_idx]; in get_var_type()
|
D | old_ml_tree.cpp | 52 var_idx = var_type = cat_count = cat_ofs = cat_map = in CvDTreeTrainData() 67 var_idx = var_type = cat_count = cat_ofs = cat_map = in CvDTreeTrainData() 253 CV_CALL( var_idx = cvPreprocessIndexArray( _var_idx, var_all )); in set_data() 254 vidx = var_idx->data.i; in set_data() 255 var_count = var_idx->rows + var_idx->cols - 1; in set_data() 273 CV_CALL( var_type0 = cvPreprocessVarType( _var_type, var_idx, var_count, &r_type )); in set_data() 1078 split->var_idx = vi; in new_split_ord() 1095 split->var_idx = vi; in new_split_cat() 1151 cvReleaseMat( &var_idx ); in clear() 1187 int vidx = var_idx ? var_idx->data.i[vi] : vi; in get_ord_var_data() [all …]
|
D | old_ml_precomp.hpp | 286 const CvMat* var_idx, 335 CvMat* cvPreprocessVarType( const CvMat* type_mask, const CvMat* var_idx, 346 const CvMat* var_idx, const CvMat* sample_idx,
|
D | old_ml.hpp | 218 CvMat* var_idx; member in CvNormalBayesClassifier 526 CV_WRAP int get_var_count() const { return var_idx ? var_idx->cols : var_all; } in get_var_count() 551 CvMat* var_idx; member in CvSVM 579 int var_idx; member 737 CvMat* var_idx; member 1980 int get_var_type( int var_idx ) const; 1987 void change_var_type( int var_idx, int type); // type in { CV_VAR_ORDERED, CV_VAR_CATEGORICAL }
|
D | old_ml_boost.cpp | 186 int i, n = node->sample_count, vi = node->split->var_idx; in calc_node_dir() 345 split->var_idx = vi; in find_split_ord_class() 469 split->var_idx = vi; in find_split_cat_class() 541 split->var_idx = vi; in find_split_ord_reg() 634 split->var_idx = vi; in find_split_cat_reg() 1111 const CvMat* var_idx = _data->get_var_idx(); in train() local 1113 CV_CALL( result = train( values, CV_ROW_SAMPLE, response, var_idx, in train() 1515 mask->data.ptr[split->var_idx] = 1; in get_active_vars() 1546 active_vars_abs->data.i[j] = data->var_idx ? data->var_idx->data.i[i] : i; in get_active_vars() 1569 split->condensed_idx = inv_map->data.i[split->var_idx]; in get_active_vars()
|
D | boost.cpp | 965 float val = ((CvCascadeBoostTrainData*)data)->getVarValue( split->var_idx, sampleIdx ); in predict() 974 int c = (int)((CvCascadeBoostTrainData*)data)->getVarValue( split->var_idx, sampleIdx ); in predict() 1022 int fidx = tempNode->split->var_idx; in write() 1079 *internalNodesIt >> prntNode->split->var_idx; internalNodesIt--; in read() 1338 featureMap.ptr<int>(0)[node->split->var_idx] = 1; in auxMarkFeaturesInMap()
|
D | cascadeclassifier.cpp | 480 … ((CvHaarEvaluator*)featureEvaluator.get())->writeFeature( fs, tempNode->split->var_idx ); in save()
|
/external/opencv/ml/include/ |
D | ml.h | 258 CvMat* var_idx; variable 525 int get_var_count() const { return var_idx ? var_idx->cols : var_all; } in get_var_count() 546 CvMat* var_idx; variable 654 int var_idx; member 808 CvMat* var_idx; member
|
/external/opencv3/modules/ml/test/ |
D | test_mltests2.cpp | 91 Mat var_idx = _data->getVarIdx(); in ann_check_data() local 92 int nvars = (int)var_idx.total(); in ann_check_data()
|
/external/mesa3d/src/gallium/auxiliary/translate/ |
D | translate_sse.c | 1143 unsigned var_idx, in get_buffer_ptr() argument 1146 if (var_idx == ELEMENT_BUFFER_INSTANCE_ID) { in get_buffer_ptr() 1153 else if (!index_size || p->buffer_variant[var_idx].instance_divisor) { in get_buffer_ptr() 1157 get_offset(p, &p->buffer_variant[var_idx].ptr)); in get_buffer_ptr() 1165 const struct translate_buffer_variant *variant = &p->buffer_variant[var_idx]; in get_buffer_ptr()
|