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 7295dd7 commit 13540bfCopy full SHA for 13540bf
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) > DBL_EPSILON) {
+ if (std::abs(totalWeight) > FLT_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