Commit 3509018b authored by Roman Donchenko's avatar Roman Donchenko Committed by OpenCV Buildbot

Merge pull request #1916 from alalek:ocl_moments_fix_perf

parents df136339 c962a9d6
...@@ -73,10 +73,10 @@ PERF_TEST_P(MomentsFixture, Moments, ...@@ -73,10 +73,10 @@ PERF_TEST_P(MomentsFixture, Moments,
Mat src(srcSize, type), dst(7, 1, CV_64F); Mat src(srcSize, type), dst(7, 1, CV_64F);
randu(src, 0, 255); randu(src, 0, 255);
oclMat src_d(src);
cv::Moments mom; cv::Moments mom;
if (RUN_OCL_IMPL) if (RUN_OCL_IMPL)
{ {
oclMat src_d(src);
OCL_TEST_CYCLE() mom = cv::ocl::ocl_moments(src_d, binaryImage); OCL_TEST_CYCLE() mom = cv::ocl::ocl_moments(src_d, binaryImage);
} }
else if (RUN_PLAIN_IMPL) else if (RUN_PLAIN_IMPL)
......
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