From: vbystricky Date: Thu, 19 Jun 2014 14:09:23 +0000 (+0400) Subject: Fix error X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3168^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb54c8398561f804fabcb30c99b6da9a8225fa97;p=platform%2Fupstream%2Fopencv.git Fix error --- diff --git a/modules/imgproc/perf/opencl/perf_imgproc.cpp b/modules/imgproc/perf/opencl/perf_imgproc.cpp index 5fc3a70..8a16280 100644 --- a/modules/imgproc/perf/opencl/perf_imgproc.cpp +++ b/modules/imgproc/perf/opencl/perf_imgproc.cpp @@ -242,10 +242,10 @@ OCL_PERF_TEST_P(IntegralFixture, Integral2, ::testing::Combine(OCL_TEST_SIZES, O checkDeviceMaxMemoryAllocSize(srcSize, ddepth); - UMat src(srcSize, CV_8UC1), sum(srcSize + Size(1, 1), ddepth), sqsum(srcSize + Size(1, 1), ddepth); + UMat src(srcSize, CV_8UC1), sum(srcSize + Size(1, 1), ddepth), sqsum(srcSize + Size(1, 1), CV_32F); declare.in(src, WARMUP_RNG).out(sum).out(sqsum); - OCL_TEST_CYCLE() cv::integral(src, sum, sqsum, ddepth, ddepth); + OCL_TEST_CYCLE() cv::integral(src, sum, sqsum, ddepth, CV_32F); SANITY_CHECK(sum, 2e-6, ERROR_RELATIVE); SANITY_CHECK(sqsum, 2e-5, ERROR_RELATIVE);