Merge pull request #1916 from alalek:ocl_moments_fix_perf

This commit is contained in:
Roman Donchenko 2013-12-03 17:58:04 +04:00 committed by OpenCV Buildbot
commit 3509018bd6

View File

@ -73,10 +73,10 @@ PERF_TEST_P(MomentsFixture, Moments,
Mat src(srcSize, type), dst(7, 1, CV_64F);
randu(src, 0, 255);
oclMat src_d(src);
cv::Moments mom;
if (RUN_OCL_IMPL)
{
oclMat src_d(src);
OCL_TEST_CYCLE() mom = cv::ocl::ocl_moments(src_d, binaryImage);
}
else if (RUN_PLAIN_IMPL)