From c962a9d61cffbbc88a61d59449f557d3a2202258 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 3 Dec 2013 16:02:41 +0400 Subject: [PATCH] ocl:perf: fix moments test for plain impl --- modules/ocl/perf/perf_moments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/perf/perf_moments.cpp b/modules/ocl/perf/perf_moments.cpp index c5d616f83d..631031ecb4 100644 --- a/modules/ocl/perf/perf_moments.cpp +++ b/modules/ocl/perf/perf_moments.cpp @@ -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)