From 69eebdd608b7bd5ba59c790c5a5e504f868d05b8 Mon Sep 17 00:00:00 2001 From: yao Date: Thu, 28 Feb 2013 09:03:10 +0800 Subject: [PATCH] fix the blend crash in some cases --- modules/ocl/src/blend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ocl/src/blend.cpp b/modules/ocl/src/blend.cpp index 5eead47..ed4a400 100644 --- a/modules/ocl/src/blend.cpp +++ b/modules/ocl/src/blend.cpp @@ -74,7 +74,7 @@ void cv::ocl::blendLinear(const oclMat &img1, const oclMat &img2, const oclMat & size_t localSize[] = {256, 1, 1}; vector< pair > args; - + result.create(img1.size(), CV_MAKE_TYPE(depth,img1.channels())); if(globalSize[0] != 0) { args.push_back( make_pair( sizeof(cl_mem), (void *)&result.data )); -- 2.7.4