projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf72d26
)
bixed cv::boxFilter
author
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 9 Jun 2014 13:09:44 +0000
(17:09 +0400)
committer
Ilya Lavrenov
<ilya.lavrenov@itseez.com>
Mon, 9 Jun 2014 13:09:44 +0000
(17:09 +0400)
modules/imgproc/src/smooth.cpp
patch
|
blob
|
history
diff --git
a/modules/imgproc/src/smooth.cpp
b/modules/imgproc/src/smooth.cpp
index
7fc301c
..
2b212b4
100644
(file)
--- a/
modules/imgproc/src/smooth.cpp
+++ b/
modules/imgproc/src/smooth.cpp
@@
-704,6
+704,8
@@
static bool ocl_boxFilter( InputArray _src, OutputArray _dst, int ddepth,
globalsize[1] = DIVUP(size.height, BLOCK_SIZE_Y);
kernel.create("boxFilter", cv::ocl::imgproc::boxFilter_oclsrc, opts);
+ if (kernel.empty())
+ return false;
size_t kernelWorkGroupSize = kernel.workGroupSize();
if (localsize[0] <= kernelWorkGroupSize)