From 16357418d5e801aa9014fdf4bd70bee04a0880be Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Mon, 9 Sep 2013 18:04:52 +0400 Subject: [PATCH] increased time limit for bilateral filter performance tests --- modules/ocl/perf/perf_filters.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/ocl/perf/perf_filters.cpp b/modules/ocl/perf/perf_filters.cpp index aa562412bc..7f2758877b 100644 --- a/modules/ocl/perf/perf_filters.cpp +++ b/modules/ocl/perf/perf_filters.cpp @@ -333,13 +333,13 @@ PERF_TEST_P(BilateralFixture, Bilateral, const Size_MatType_t params = GetParam(); const Size srcSize = get<0>(params); const int type = get<1>(params), d = 7; - double sigmacolor = 50.0, sigmaspace = 50.0; + const double sigmacolor = 50.0, sigmaspace = 50.0; Mat src(srcSize, type), dst(srcSize, type); declare.in(src, WARMUP_RNG).out(dst); - if (srcSize == OCL_SIZE_4000 && type == CV_8UC3) - declare.time(8); + if (srcSize == OCL_SIZE_4000) + declare.time(type == CV_8UC3 ? 8 : 4.5); if (RUN_OCL_IMPL) { @@ -372,14 +372,16 @@ PERF_TEST_P(adaptiveBilateralFixture, adaptiveBilateral, const Size_MatType_t params = GetParam(); const Size srcSize = get<0>(params); const int type = get<1>(params); - double sigmaspace = 10.0; - Size ksize(9,9); + const double sigmaspace = 10.0; + Size ksize(9, 9); Mat src(srcSize, type), dst(srcSize, type); declare.in(src, WARMUP_RNG).out(dst); if (srcSize == OCL_SIZE_4000) - declare.time(15); + declare.time(type == CV_8UC3 ? 46 : 28); + else if (srcSize == OCL_SIZE_2000) + declare.time(type == CV_8UC3 ? 11 : 7); if (RUN_OCL_IMPL) { @@ -389,7 +391,7 @@ PERF_TEST_P(adaptiveBilateralFixture, adaptiveBilateral, oclDst.download(dst); - SANITY_CHECK(dst, 1.); + SANITY_CHECK(dst, 1.0); } else if (RUN_PLAIN_IMPL) {