Fix error
This commit is contained in:
parent
6d6ad1b1d9
commit
eb54c83985
@ -242,10 +242,10 @@ OCL_PERF_TEST_P(IntegralFixture, Integral2, ::testing::Combine(OCL_TEST_SIZES, O
|
|||||||
|
|
||||||
checkDeviceMaxMemoryAllocSize(srcSize, ddepth);
|
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);
|
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(sum, 2e-6, ERROR_RELATIVE);
|
||||||
SANITY_CHECK(sqsum, 2e-5, ERROR_RELATIVE);
|
SANITY_CHECK(sqsum, 2e-5, ERROR_RELATIVE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user