mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Merge pull request #6820 from grochefort:fix_backgroundsubstractormog2_master
This commit is contained in:
commit
0330322dbd
@ -594,7 +594,7 @@ public:
|
||||
|
||||
//internal:
|
||||
bool fitsPDF = false;//if it remains zero a new GMM mode will be added
|
||||
int nmodes = modesUsed[x], nNewModes = nmodes;//current number of modes in GMM
|
||||
int nmodes = modesUsed[x];//current number of modes in GMM
|
||||
float totalWeight = 0.f;
|
||||
|
||||
float* mean_m = mean;
|
||||
@ -700,8 +700,6 @@ public:
|
||||
gmm[mode].weight *= totalWeight;
|
||||
}
|
||||
|
||||
nmodes = nNewModes;
|
||||
|
||||
//make new mode if needed and exit
|
||||
if( !fitsPDF && alphaT > 0.f )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user