BackgroundSubtractorMOG2, learningRate=0 optimization

pull/3352/head
Tomasz Posłuszny 11 years ago
parent 22ff1e8826
commit 8dd213c829
  1. 2
      modules/video/src/bgfg_gaussmix2.cpp

@ -689,7 +689,7 @@ public:
nmodes = nNewModes;
//make new mode if needed and exit
if( !fitsPDF )
if( !fitsPDF && alphaT > 0.f )
{
// replace the weakest or add a new one
int mode = nmodes == nmixtures ? nmixtures-1 : nmodes++;

Loading…
Cancel
Save