From 302250f241170a2f726a202d4e6db8ea7ee034cd Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 4 Jun 2013 13:58:45 +0400 Subject: [PATCH] fixed BroxOpticalFlow regression test the output of BroxOpticalFlow differs a bit in CUDA 5.5 --- modules/gpuoptflow/test/test_optflow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gpuoptflow/test/test_optflow.cpp b/modules/gpuoptflow/test/test_optflow.cpp index cf05ebc..fce0755 100644 --- a/modules/gpuoptflow/test/test_optflow.cpp +++ b/modules/gpuoptflow/test/test_optflow.cpp @@ -103,8 +103,8 @@ GPU_TEST_P(BroxOpticalFlow, Regression) for (int i = 0; i < v_gold.rows; ++i) f.read(v_gold.ptr(i), v_gold.cols * sizeof(float)); - EXPECT_MAT_NEAR(u_gold, u, 0); - EXPECT_MAT_NEAR(v_gold, v, 0); + EXPECT_MAT_SIMILAR(u_gold, u, 1e-3); + EXPECT_MAT_SIMILAR(v_gold, v, 1e-3); #else std::ofstream f(fname.c_str(), std::ios_base::binary); -- 2.7.4