• Home
  • Raw
  • Download

Lines Matching refs:train_data

119 void CvEM::set_params( const CvEMParams& _params, const CvVectors& train_data )  in set_params()  argument
160 p->rows != train_data.count || in set_params()
173 m->cols != train_data.dims ) in set_params()
197 cov->rows != cov->cols || cov->cols != train_data.dims ) in set_params()
307 CvVectors train_data; in train() local
310 train_data.data.fl = 0; in train()
311 train_data.count = 0; in train()
323 0, _sample_idx, false, (const float***)&train_data.data.fl, in train()
324 &train_data.count, &train_data.dims, &train_data.dims, in train()
327 CV_CALL( set_params( _params, train_data )); in train()
328 nsamples = train_data.count; in train()
330 dims = train_data.dims; in train()
357 init_em( train_data ); in train()
358 log_likelihood = run_em( train_data ); in train()
390 cvFree( &train_data.data.ptr ); in train()
396 void CvEM::init_em( const CvVectors& train_data ) in init_em() argument
406 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims; in init_em()
409 init_auto( train_data ); in init_em()
445 init_auto( train_data ); in init_em()
483 void CvEM::init_auto( const CvVectors& train_data ) in init_auto() argument
494 int nclusters = params.nclusters, nsamples = train_data.count, dims = train_data.dims; in init_auto()
503 src.data.ptr = train_data.data.ptr[i]; in init_auto()
520 kmeans( train_data, nclusters, labels, cvTermCriteria( CV_TERMCRIT_ITER, in init_auto()
522 CV_CALL( cvSortSamplesByClasses( (const float**)train_data.data.fl, in init_auto()
555 hdr[j - left].data.fl = train_data.data.fl[j]; in init_auto()
573 void CvEM::kmeans( const CvVectors& train_data, int nclusters, CvMat* labels, in kmeans() argument
591 nsamples = train_data.count; in kmeans()
592 dims = train_data.dims; in kmeans()
619 const float* s = train_data.data.fl[i]; in kmeans()
665 const float* s = train_data.data.fl[i]; in kmeans()
709 s = train_data.data.fl[i]; in kmeans()
775 double CvEM::run_em( const CvVectors& train_data ) in run_em() argument
789 int nsamples = train_data.count, dims = train_data.dims, nclusters = params.nclusters; in run_em()
858 const float* src = train_data.data.fl[i]; in run_em()