fixed background update in GMM2 algorithm (ticket #1931)

This commit is contained in:
Vadim Pisarevsky 2012-05-15 14:25:07 +00:00
parent d2da219ec0
commit 8a5b6ced1a

View File

@ -571,7 +571,7 @@ void BackgroundSubtractorMOG2::operator()(InputArray _image, OutputArray _fgmask
bgmodelUsedModes.data, nmixtures, (float)learningRate,
(float)varThreshold,
backgroundRatio, varThresholdGen,
fVarInit, fVarMin, fVarMax, fCT, fTau,
fVarInit, fVarMin, fVarMax, -learningRate*fCT, fTau,
bShadowDetection, nShadowDetection));
}
}