Skip to content

Commit

Permalink
changed power in cv::pow test to test actual kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-lavrenov committed Jun 10, 2014
1 parent e0f40a7 commit 9edd24f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/core/perf/opencl/perf_arithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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////////////////////////
Expand Down

0 comments on commit 9edd24f

Please sign in to comment.