mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
remove the empty implementation when HAVE_OPENCL not defined
This commit is contained in:
@@ -50,13 +50,6 @@ using namespace cv;
|
||||
using namespace cv::ocl;
|
||||
using namespace std;
|
||||
|
||||
#if !defined (HAVE_OPENCL)
|
||||
void cv::ocl::blendLinear(const oclMat &img1, const oclMat &img2, const oclMat &weights1, const oclMat &weights2,
|
||||
oclMat &result)
|
||||
{
|
||||
throw_nogpu();
|
||||
}
|
||||
#else
|
||||
namespace cv
|
||||
{
|
||||
namespace ocl
|
||||
@@ -97,5 +90,4 @@ void cv::ocl::blendLinear(const oclMat &img1, const oclMat &img2, const oclMat &
|
||||
|
||||
openCLExecuteKernel(ctx, &blend_linear, kernelName, globalSize, localSize, args, channels, depth);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user