mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 11:40:44 +08:00
fixed cv::mixChannels perf test
This commit is contained in:
parent
b45bb60c8b
commit
9899cf7519
@ -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 };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user