fixed cv::mixChannels perf test
authorIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 9 Jan 2014 10:26:44 +0000 (14:26 +0400)
committerIlya Lavrenov <ilya.lavrenov@itseez.com>
Thu, 9 Jan 2014 10:26:44 +0000 (14:26 +0400)
modules/core/perf/opencl/perf_channels.cpp

index 958bb73..4856ed4 100644 (file)
@@ -137,10 +137,13 @@ OCL_PERF_TEST_P(MixChannelsFixture, MixChannels,
 
     checkDeviceMaxMemoryAllocSize(srcSize, type);
 
-    UMat templ(srcSize, type);
-    std::vector<UMat> src(n, templ), dst(n, templ);
+    std::vector<UMat> src(n), dst(n);
     for (int i = 0; i < n; ++i)
+    {
+        src[i] = UMat(srcSize, type);
+        dst[i] = UMat(srcSize, type);
         declare.in(src[i], WARMUP_RNG).out(dst[i]);
+    }
 
     int fromTo[] = { 1,2, 2,0, 0,3, 3,1 };