Home | History | Annotate | Download | only in src

Lines Matching full:labels

79             CvEMParams params, CvMat* labels )
85 train(samples, sample_idx, params, labels);
304 CvEMParams _params, CvMat* labels )
332 if( labels && (!CV_IS_MAT(labels) || CV_MAT_TYPE(labels->type) != CV_32SC1 ||
333 labels->cols != 1 && labels->rows != 1 || labels->cols + labels->rows - 1 != nsamples ))
335 "labels array (when passed) must be a valid 1d integer vector of <sample_count> elements" );
362 if( labels )
365 cvZero( labels );
370 int lstep = CV_IS_MAT_CONT(labels->type) ? 1 : labels->step/sizeof(int);
378 labels->data.i[i*lstep] = cvRound(predict(&sample, &prob));
488 CvMat* labels = 0;
519 CV_CALL( labels = cvCreateMat( 1, nsamples, CV_32SC1 ));
520 kmeans( train_data, nclusters, labels, cvTermCriteria( CV_TERMCRIT_ITER,
523 labels, class_ranges->data.i ));
567 cvReleaseMat( &labels );
573 void CvEM::kmeans( const CvVectors& train_data, int nclusters, CvMat* labels,
607 labels->data.i[i] = i*nclusters/nsamples;
608 cvRandShuffle( labels, &rng );
651 labels->data.i[i] = k_best;
666 k = labels->data.i[i];
706 if( counters->data.i[labels->data.i[i]] > 1 )
734 counters->data.i[labels->data.i[i]]++;
742 j = labels->data.i[i];
745 labels->data.i[i] = k;