Commit a547ddb4 authored by Hamdi Sahloul's avatar Hamdi Sahloul Committed by Vadim Pisarevsky

[moved from opencv] CUDA/BgSegm: fix the threshold of MOG2.Update test when…

[moved from opencv] CUDA/BgSegm: fix the threshold of MOG2.Update test when detectShadow=true (opencv/opencv#12762)

original commit: https://github.com/opencv/opencv/commit/c4d434fd6f42edd955429990354191200897204d
parent 74a4ed9e
......@@ -110,14 +110,7 @@ CUDA_TEST_P(MOG2, Update)
mog2_gold->apply(frame, foreground_gold);
if (detectShadow)
{
ASSERT_MAT_SIMILAR(foreground_gold, foreground, 1e-2);
}
else
{
ASSERT_MAT_NEAR(foreground_gold, foreground, 0);
}
ASSERT_MAT_SIMILAR(foreground_gold, foreground, detectShadow ? 13e-3 : 18e-8);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment