We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a1767a commit 7295dd7Copy full SHA for 7295dd7
modules/video/src/bgfg_gaussmix2.cpp
@@ -696,7 +696,7 @@ class MOG2Invoker : public ParallelLoopBody
696
// Renormalize weights. In the special case that the pixel does
697
// not agree with any modes, set weights to zero (a new mode will be added below).
698
float invWeight = 0.f;
699
- if (fabs(totalWeight) > 1e-12f) {
+ if (fabs(totalWeight) > DBL_EPSILON) {
700
invWeight = 1.f/totalWeight;
701
}
702
@@ -906,7 +906,7 @@ void BackgroundSubtractorMOG2Impl::getBackgroundImage_intern(OutputArray backgro
906
break;
907
908
909
910
911
912
0 commit comments