From e0c6377d58e229b741e67d8121ee348cce09bef1 Mon Sep 17 00:00:00 2001 From: vbystricky Date: Wed, 22 Jan 2014 10:34:27 +0400 Subject: [PATCH] Change the sanity checking type to ERROR_RELATIVE --- modules/video/perf/opencl/perf_optflow_farneback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/video/perf/opencl/perf_optflow_farneback.cpp b/modules/video/perf/opencl/perf_optflow_farneback.cpp index bbd54cc4d3..a17ed4dd9d 100644 --- a/modules/video/perf/opencl/perf_optflow_farneback.cpp +++ b/modules/video/perf/opencl/perf_optflow_farneback.cpp @@ -90,7 +90,7 @@ OCL_PERF_TEST_P(FarnebackOpticalFlowFixture, FarnebackOpticalFlow, const double pyrScale = 0.5; int flags = get<1>(params); const bool useInitFlow = get<2>(params); - const double eps = 0.01; + const double eps = 0.1; UMat uFrame0; frame0.copyTo(uFrame0); UMat uFrame1; frame1.copyTo(uFrame1); @@ -106,7 +106,7 @@ OCL_PERF_TEST_P(FarnebackOpticalFlowFixture, FarnebackOpticalFlow, cv::calcOpticalFlowFarneback(uFrame0, uFrame1, uFlow, pyrScale, numLevels, winSize, numIters, polyN, polySigma, flags); - SANITY_CHECK(uFlow, eps); + SANITY_CHECK(uFlow, eps, ERROR_RELATIVE); } } } // namespace cvtest::ocl