Optimizes filter2D for Intel GPUs

This commit is contained in:
Aaron Kunze
2014-04-23 10:20:09 -07:00
parent dcc4d3640b
commit 1f8b41f390
4 changed files with 486 additions and 64 deletions

View File

@@ -4379,7 +4379,7 @@ String kernelToStr(InputArray _kernel, int ddepth, const char * name)
typedef std::string (* func_t)(const Mat &);
static const func_t funcs[] = { kerToStr<uchar>, kerToStr<char>, kerToStr<ushort>, kerToStr<short>,
kerToStr<int>, kerToStr<float>, kerToStr<double>, 0 };
const func_t func = funcs[depth];
const func_t func = funcs[ddepth];
CV_Assert(func != 0);
return cv::format(" -D %s=%s", name ? name : "COEFF", func(kernel).c_str());