From 89f3c40d791a6dd1951fd23ba7c1d9a8df8f1454 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Tue, 4 Jun 2013 15:01:06 +0400 Subject: [PATCH] fixed BroxOpticalFlow sanity test (increase epsilon value) + interpolateFrames and createOpticalFlowNeedleMap --- modules/gpu/perf/perf_video.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/gpu/perf/perf_video.cpp b/modules/gpu/perf/perf_video.cpp index 1ab01a75b..672d657b2 100644 --- a/modules/gpu/perf/perf_video.cpp +++ b/modules/gpu/perf/perf_video.cpp @@ -103,7 +103,7 @@ PERF_TEST_P(ImagePair, Video_InterpolateFrames, TEST_CYCLE() cv::gpu::interpolateFrames(d_frame0, d_frame1, d_fu, d_fv, d_bu, d_bv, 0.5f, newFrame, d_buf); - GPU_SANITY_CHECK(newFrame); + GPU_SANITY_CHECK(newFrame, 1e-4); } else { @@ -142,7 +142,7 @@ PERF_TEST_P(ImagePair, Video_CreateOpticalFlowNeedleMap, TEST_CYCLE() cv::gpu::createOpticalFlowNeedleMap(u, v, vertex, colors); - GPU_SANITY_CHECK(vertex); + GPU_SANITY_CHECK(vertex, 1e-6); GPU_SANITY_CHECK(colors); } else @@ -219,8 +219,8 @@ PERF_TEST_P(ImagePair, Video_BroxOpticalFlow, TEST_CYCLE() d_flow(d_frame0, d_frame1, u, v); - GPU_SANITY_CHECK(u); - GPU_SANITY_CHECK(v); + GPU_SANITY_CHECK(u, 1e-1); + GPU_SANITY_CHECK(v, 1e-1); } else {