Commit 516e5b25 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed BroxOpticalFlow regression test

the output of BroxOpticalFlow differs a bit in CUDA 5.5
parent 91838187
...@@ -102,8 +102,8 @@ GPU_TEST_P(BroxOpticalFlow, Regression) ...@@ -102,8 +102,8 @@ GPU_TEST_P(BroxOpticalFlow, Regression)
for (int i = 0; i < v_gold.rows; ++i) for (int i = 0; i < v_gold.rows; ++i)
f.read(v_gold.ptr<char>(i), v_gold.cols * sizeof(float)); f.read(v_gold.ptr<char>(i), v_gold.cols * sizeof(float));
EXPECT_MAT_NEAR(u_gold, u, 0); EXPECT_MAT_SIMILAR(u_gold, u, 1e-3);
EXPECT_MAT_NEAR(v_gold, v, 0); EXPECT_MAT_SIMILAR(v_gold, v, 1e-3);
#else #else
std::ofstream f(fname.c_str(), std::ios_base::binary); std::ofstream f(fname.c_str(), std::ios_base::binary);
......
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