From 6d368dc1e7d0da08316c35e453917d8b7a83a583 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Sun, 30 Mar 2014 18:02:03 -0700 Subject: [PATCH] increase epsilon for MOG2::getBackgroundImage test: it uses float arithmetics --- modules/gpu/test/test_bgfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gpu/test/test_bgfg.cpp b/modules/gpu/test/test_bgfg.cpp index 6ef93c5..e08bfb3 100644 --- a/modules/gpu/test/test_bgfg.cpp +++ b/modules/gpu/test/test_bgfg.cpp @@ -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( -- 2.7.4