Home | History | Annotate | Download | only in src

Lines Matching defs:stat

364                 CvBGPixelStat* stat = model->pixel_stat + i * model->Ftd->width + j;
366 CvBGPixelCStatTable* ctable = stat->ctable;
367 CvBGPixelCCStatTable* cctable = stat->cctable;
377 if( !stat->is_trained_dyn_model ) {
397 Pb = stat->Pbcc;
401 else if( stat->is_trained_st_model )
414 Pb = stat->Pbc;
479 CvBGPixelStat* stat = model->pixel_stat + i * model->Ftd->width + j;
480 stat->is_trained_st_model = stat->is_trained_dyn_model = 1;
490 CvBGPixelStat* stat = model->pixel_stat + i * model->Ftd->width + j;
491 CvBGPixelCStatTable* ctable = stat->ctable;
492 CvBGPixelCCStatTable* cctable = stat->cctable;
497 if( ((uchar*)model->Ftd->imageData)[i*mask_step+j] || !stat->is_trained_dyn_model )
499 float alpha = stat->is_trained_dyn_model ? model->params.alpha2 : model->params.alpha3;
504 stat->Pbcc *= (1.f-alpha);
507 stat->Pbcc += alpha;
587 if( sum1 > model->params.T ) stat->is_trained_dyn_model = 1;
589 diff = sum1 - stat->Pbcc * sum2;
590 // Update stat table:
598 (PV_CC(k)-stat->Pbcc*PVB_CC(k))/(1-stat->Pbcc);
600 assert(stat->Pbcc<=1 && stat->Pbcc>=0);
607 float alpha = stat->is_trained_st_model ? model->params.alpha2 : model->params.alpha3;
612 stat->Pbc *= (1.f-alpha);
615 stat->Pbc += alpha;
688 diff = sum1 - stat->Pbc * sum2;
689 if( sum1 > model->params.T ) stat->is_trained_st_model = 1;
691 // Update stat table:
694 //printf("once off change at stat mode\n");
698 PVB_C(k) = (PV_C(k)-stat->Pbc*PVB_C(k))/(1-stat->Pbc);
700 stat->Pbc = 1 - stat->Pbc;