Commit 8dd213c8 authored by Tomasz Posłuszny's avatar Tomasz Posłuszny

BackgroundSubtractorMOG2, learningRate=0 optimization

parent 22ff1e88
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment