• Home
  • Raw
  • Download

Lines Matching refs:stat

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