From 8a5b6ced1a7960d70addf4c6aa0d75cc4ac7a52e Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Tue, 15 May 2012 14:25:07 +0000 Subject: [PATCH] fixed background update in GMM2 algorithm (ticket #1931) --- modules/video/src/bgfg_gaussmix2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/video/src/bgfg_gaussmix2.cpp b/modules/video/src/bgfg_gaussmix2.cpp index 5be317e7b..3c39b33d1 100644 --- a/modules/video/src/bgfg_gaussmix2.cpp +++ b/modules/video/src/bgfg_gaussmix2.cpp @@ -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)); } }