From: Vladislav Vinogradov Date: Mon, 31 Mar 2014 01:02:03 +0000 (-0700) Subject: increase epsilon for MOG2::getBackgroundImage test: X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~527^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d368dc1e7d0da08316c35e453917d8b7a83a583;p=platform%2Fupstream%2Fopencv.git increase epsilon for MOG2::getBackgroundImage test: it uses float arithmetics --- 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(