Home | History | Annotate | Download | only in src

Lines Matching refs:params

88     CvFGDStatModelParams params;
99 params.Lc = CV_BGFG_FGD_LC;
100 params.N1c = CV_BGFG_FGD_N1C;
101 params.N2c = CV_BGFG_FGD_N2C;
103 params.Lcc = CV_BGFG_FGD_LCC;
104 params.N1cc = CV_BGFG_FGD_N1CC;
105 params.N2cc = CV_BGFG_FGD_N2CC;
107 params.delta = CV_BGFG_FGD_DELTA;
109 params.alpha1 = CV_BGFG_FGD_ALPHA_1;
110 params.alpha2 = CV_BGFG_FGD_ALPHA_2;
111 params.alpha3 = CV_BGFG_FGD_ALPHA_3;
113 params.T = CV_BGFG_FGD_T;
114 params.minArea = CV_BGFG_FGD_MINAREA;
116 params.is_obj_without_holes = 1;
117 params.perform_morphing = 1;
121 params = *parameters;
129 p_model->params = params;
138 buf_size = pixel_count*params.N2c*sizeof(p_model->pixel_stat[0].ctable[0]);
142 buf_size = pixel_count*params.N2cc*sizeof(p_model->pixel_stat[0].cctable[0]);
149 p_model->pixel_stat[k].ctable = p_model->pixel_stat[0].ctable + k*params.N2c;
150 p_model->pixel_stat[k].cctable = p_model->pixel_stat[0].cctable + k*params.N2cc;
336 int deltaC = cvRound(model->params.delta * 256 / model->params.Lc);
337 int deltaCC = cvRound(model->params.delta * 256 / model->params.Lcc);
384 for( k = 0; PV_CC(k) > model->params.alpha2 && k < model->params.N1cc; k++ )
404 for( k = 0; PV_C(k) > model->params.alpha2 && k < model->params.N1c; k++ )
429 if( model->params.perform_morphing ){
430 cvMorphologyEx( model->foreground, model->foreground, 0, 0, CV_MOP_OPEN, model->params.perform_morphing );
431 cvMorphologyEx( model->foreground, model->foreground, 0, 0, CV_MOP_CLOSE, model->params.perform_morphing );
435 if( model->params.minArea > 0 || model->params.is_obj_without_holes ){
443 if( cnt->rect.width * cnt->rect.height < model->params.minArea ||
444 (model->params.is_obj_without_holes && CV_IS_SEQ_HOLE(seq)) )
499 float alpha = stat->is_trained_dyn_model ? model->params.alpha2 : model->params.alpha3;
511 for(k = 0; PV_CC(k) && k < model->params.N2cc; k++ )
543 indx = model->params.N2cc - 1;
582 for(k = 0; PV_CC(k) && k < model->params.N1cc; k++ )
587 if( sum1 > model->params.T ) stat->is_trained_dyn_model = 1;
591 if( diff > model->params.T )
595 for( k = 0; PV_CC(k) && k < model->params.N1cc; k++ )
607 float alpha = stat->is_trained_st_model ? model->params.alpha2 : model->params.alpha3;
619 for( k = 0; k < model->params.N2c; k++ )
647 indx = model->params.N2c - 1;
683 for( k = 0; PV_C(k) && k < model->params.N1c; k++ )
689 if( sum1 > model->params.T ) stat->is_trained_st_model = 1;
692 if( diff > model->params.T )
696 for( k = 0; PV_C(k) && k < model->params.N1c; k++ )
715 int a = cvRound(ptr[l]*(1 - model->params.alpha1) + model->params.alpha1*curr_data[l]);
717 //((uchar*)model->background->imageData)[i*model->background->widthStep+j*3+l]*=(1 - model->params.alpha1);
718 //((uchar*)model->background->imageData)[i*model->background->widthStep+j*3+l] += model->params.alpha1*curr_data[l];