morph ocl kernel for erode and dilate filter
authorLi Peng <peng.li@intel.com>
Wed, 19 Oct 2016 06:53:05 +0000 (14:53 +0800)
committerLi Peng <peng.li@intel.com>
Fri, 4 Nov 2016 04:24:24 +0000 (12:24 +0800)
commit35198b84a42d7af39686889efbb6af99d223722a
tree6a3bbf53ffdbf207a002a230cd8c14c8e5e64eb9
parent18327aed30a6959607d8732462f54f080b0a5c39
morph ocl kernel for erode and dilate filter

This kernel is for CV_8UC1 format and 3x3 kernel size,
It is about 33% ~ 55% faster than current ocl kernel with below perf test

python ./modules/ts/misc/run.py -t imgproc --gtest_filter=OCL_ErodeFixture*
python ./modules/ts/misc/run.py -t imgproc --gtest_filter=OCL_DilateFixture*

Also add accuracy test cases for this kernel, the test command is

./bin/opencv_test_imgproc --gtest_filter=OCL_Filter/MorphFilter3x3*

Signed-off-by: Li Peng <peng.li@intel.com>
modules/imgproc/src/morph.cpp
modules/imgproc/src/opencl/morph3x3.cl [new file with mode: 0644]
modules/imgproc/test/ocl/test_filters.cpp