From 9899cf7519a8a8bd59a032e1bb04634dc4590493 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Thu, 9 Jan 2014 14:26:44 +0400 Subject: [PATCH] fixed cv::mixChannels perf test --- modules/core/perf/opencl/perf_channels.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/core/perf/opencl/perf_channels.cpp b/modules/core/perf/opencl/perf_channels.cpp index 958bb73b5d..4856ed4c39 100644 --- a/modules/core/perf/opencl/perf_channels.cpp +++ b/modules/core/perf/opencl/perf_channels.cpp @@ -137,10 +137,13 @@ OCL_PERF_TEST_P(MixChannelsFixture, MixChannels, checkDeviceMaxMemoryAllocSize(srcSize, type); - UMat templ(srcSize, type); - std::vector src(n, templ), dst(n, templ); + std::vector 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 }; -- GitLab