Commit e7e6d9d6 authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #1729 from ilya-lavrenov:ocl_moments

parents a9a39a3a a8b7573d
...@@ -63,7 +63,7 @@ typedef TestBaseWithParam<MomentsParamType> MomentsFixture; ...@@ -63,7 +63,7 @@ typedef TestBaseWithParam<MomentsParamType> MomentsFixture;
PERF_TEST_P(MomentsFixture, Moments, PERF_TEST_P(MomentsFixture, Moments,
::testing::Combine(OCL_TYPICAL_MAT_SIZES, ::testing::Combine(OCL_TYPICAL_MAT_SIZES,
OCL_PERF_ENUM(CV_8UC1, CV_16SC1, CV_16UC1, CV_32FC1), ::testing::Values(false, true))) OCL_PERF_ENUM(CV_8UC1, CV_16SC1, CV_16UC1, CV_32FC1), ::testing::Bool()))
{ {
const MomentsParamType params = GetParam(); const MomentsParamType params = GetParam();
const Size srcSize = get<0>(params); const Size srcSize = get<0>(params);
...@@ -86,5 +86,5 @@ PERF_TEST_P(MomentsFixture, Moments, ...@@ -86,5 +86,5 @@ PERF_TEST_P(MomentsFixture, Moments,
else else
OCL_PERF_ELSE OCL_PERF_ELSE
cv::HuMoments(mom, dst); cv::HuMoments(mom, dst);
SANITY_CHECK(dst, 1e-3); SANITY_CHECK(dst, 2e-1);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment