increase epsilon for MOG2::getBackgroundImage test:
authorVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 31 Mar 2014 01:02:03 +0000 (18:02 -0700)
committerVladislav Vinogradov <vlad.vinogradov@itseez.com>
Mon, 31 Mar 2014 01:02:03 +0000 (18:02 -0700)
it uses float arithmetics

modules/gpu/test/test_bgfg.cpp

index 6ef93c5..e08bfb3 100644 (file)
@@ -336,7 +336,7 @@ GPU_TEST_P(MOG2, getBackgroundImage)
     cv::Mat background_gold;
     mog2_gold.getBackgroundImage(background_gold);
 
-    ASSERT_MAT_NEAR(background_gold, background, 0);
+    ASSERT_MAT_NEAR(background_gold, background, 1);
 }
 
 INSTANTIATE_TEST_CASE_P(GPU_Video, MOG2, testing::Combine(