From: yao Date: Thu, 28 Feb 2013 01:03:10 +0000 (+0800) Subject: fix the blend crash in some cases X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~1451^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69eebdd608b7bd5ba59c790c5a5e504f868d05b8;p=platform%2Fupstream%2Fopencv.git fix the blend crash in some cases --- 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 ));