1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

blend use vector to optimize

This commit is contained in:
yao
2013-02-04 17:29:20 +08:00
parent db9de43fa5
commit 9711ef6dee
2 changed files with 50 additions and 54 deletions
+2 -2
View File
@@ -77,8 +77,8 @@ void cv::ocl::blendLinear(const oclMat &img1, const oclMat &img2, const oclMat &
int cols = img1.cols;
int istep = img1.step1();
int wstep = weights1.step1();
size_t globalSize[] = {cols * channels, rows, 1};
size_t localSize[] = {16, 16, 1};
size_t globalSize[] = {cols * channels / 4, rows, 1};
size_t localSize[] = {256, 1, 1};
vector< pair<size_t, const void *> > args;