Itseez/opencv — pull request #3011 by vbystricky (2014-07-28 11:56:39+00:00)
Title: OCL: Optimize OpenCL version of morfology and box filters for small filter kernels

Optimization: optimization effort for morph kernel, the same as in filter2D. This new kernel also used for boxFilter.
Converts to short data type for GRADIENT, BLACKHAT and TOPHAT operations, if source data type is uchar (to prevent overflow).

Performance report:

check_regression=*OCL*Erode*:*OCL*Dilate*:*OCL*Morph*:*OCL*Box*
build_examples=OFF
test_modules=imgproc
test_filter=*OCL*Erode*:*OCL*Dilate*:*OCL*Morph*:*OCL*Box*