/external/opencv/ml/src/ |
D | mlem.cpp | 106 for( i = 0; i < params.nclusters; i++ ) in clear() 151 if( params.nclusters < 1 ) in set_params() 161 p->cols != params.nclusters ) in set_params() 172 m->rows != params.nclusters || in set_params() 185 w->rows + w->cols - 1 != params.nclusters ) in set_params() 191 for( k = 0; k < params.nclusters; k++ ) in set_params() 220 int nclusters; in predict() local 227 nclusters = params.nclusters; in predict() 229 CV_CALL( cvPreparePredictData( _sample, dims, 0, params.nclusters, _probs, &sample_data )); in predict() 232 size = sizeof(double) * (nclusters + dims); in predict() [all …]
|
D | ml_inner_functions.cpp | 1896 int nclusters, nsamples; in icvFindClusterLabels() local 1903 nclusters = probs->cols; in icvFindClusterLabels() 1907 CV_CALL( counts = cvCreateMat( 1, nclusters + 1, CV_32SC1 ) ); in icvFindClusterLabels() 1912 nclusters, r, outlier_thresh, 1 ); in icvFindClusterLabels() 1917 for( j = 0; j < nclusters; j++ ) // outliers are ignored in icvFindClusterLabels()
|
/external/opencv3/modules/ml/src/ |
D | em.cpp | 55 int nclusters; member in cv::ml::EMImpl 63 nclusters = val; in CV_IMPL_PROPERTY_S() 64 CV_Assert(nclusters > 1); in CV_IMPL_PROPERTY_S() 69 return nclusters; in getClustersNumber() 87 nclusters = DEFAULT_NCLUSTERS; in EMImpl() 172 _outputs.create(samples.rows, nclusters, ptype); in predict() 208 _probs.create(1, nclusters, ptype); in predict2() 236 int nclusters, int covMatType, const Mat* probs, const Mat* means, in checkTrainData() argument 247 CV_Assert(nclusters > 0); in checkTrainData() 248 CV_Assert(nclusters <= nsamples); in checkTrainData() [all …]
|
/external/opencv3/modules/ml/test/ |
D | test_emknearestkmeans.cpp | 139 size_t total = 0, nclusters = sizes.size(); in getLabelsMap() local 149 labelsMap.resize(nclusters); in getLabelsMap() 151 vector<bool> buzy(nclusters, false); in getLabelsMap() 155 vector<int> count( nclusters, 0 ); in getLabelsMap() 159 CV_Assert(lbl < (int)nclusters); in getLabelsMap() 358 : nclusters(_nclusters), covMatType(_covMatType), startStep(_startStep), in EM_Params() 362 int nclusters; member in EM_Params 399 em->setClustersNumber(params.nclusters); in runCase() 465 params.nclusters = 3; in run() 466 Mat probs(trainData.rows, params.nclusters, CV_64FC1, cv::Scalar(1)); in run() [all …]
|
/external/opencv3/apps/traincascade/ |
D | old_ml_inner_functions.cpp | 1822 int nclusters, nsamples; in icvFindClusterLabels() local 1829 nclusters = probs->cols; in icvFindClusterLabels() 1833 CV_CALL( counts = cvCreateMat( 1, nclusters + 1, CV_32SC1 ) ); in icvFindClusterLabels() 1838 nclusters, r, outlier_thresh, 1 ); in icvFindClusterLabels() 1843 for( j = 0; j < nclusters; j++ ) // outliers are ignored in icvFindClusterLabels()
|
/external/opencv/ml/include/ |
D | ml.h | 561 CvEMParams() : nclusters(10), cov_mat_type(1/*CvEM::COV_MAT_DIAGONAL*/), in CvEMParams() 571 nclusters(_nclusters), cov_mat_type(_cov_mat_type), start_step(_start_step), in nclusters() function 575 int nclusters; member 622 virtual void kmeans( const CvVectors& train_data, int nclusters,
|
/external/opencv3/doc/py_tutorials/py_ml/py_kmeans/py_kmeans_opencv/ |
D | py_kmeans_opencv.markdown | 16 -# **nclusters(K)** : Number of clusters required at end
|