From: Ilya Lavrenov Date: Tue, 10 Jun 2014 13:25:31 +0000 (+0400) Subject: changed power in cv::pow test to test actual kernel X-Git-Tag: submit/tizen_ivi/20141117.190038~2^2~332^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9edd24fe5104109828f5ad48001333ccddf0ca63;p=profile%2Fivi%2Fopencv.git changed power in cv::pow test to test actual kernel --- diff --git a/modules/core/perf/opencl/perf_arithm.cpp b/modules/core/perf/opencl/perf_arithm.cpp index f6ad607..8488c17 100644 --- a/modules/core/perf/opencl/perf_arithm.cpp +++ b/modules/core/perf/opencl/perf_arithm.cpp @@ -591,12 +591,12 @@ OCL_PERF_TEST_P(PowFixture, Pow, ::testing::Combine( checkDeviceMaxMemoryAllocSize(srcSize, type); UMat src(srcSize, type), dst(srcSize, type); - randu(src, -100, 100); + randu(src, 0, 100); declare.in(src).out(dst); - OCL_TEST_CYCLE() cv::pow(src, -2.0, dst); + OCL_TEST_CYCLE() cv::pow(src, 2.17, dst); - SANITY_CHECK(dst, 1e-6, ERROR_RELATIVE); + SANITY_CHECK(dst, 1.5e-6, ERROR_RELATIVE); } ///////////// AddWeighted////////////////////////