Hi,
We’ve developed a OpenCL module for OpenCV and have submitted as a branch of opencv code base: http://code.opencv.org/svn/opencv/branches/ocl
We’d developers of image processing can be benefit from this piece of work. The basic idea of this module is similar to OpenCV’s gpu module, but enable none CUDA GPUs to run OpenCV functions. We also feel happy if OpenCL programers learn technics from our kernels when using it.
This version of OpenCV is based on OpenCV2.31. Please copy the FindOpenCL.cmake to you CMake’s share folder so that it can find your OpenCL path. And this module is only tested on AMD’s GPU, but i think that’s enough.
first of all thx for your great work. I’ve tried to run your StereoBM algorithm on my GPU with the following sample code. Thereby my whole system crashs at:
bm(left_ocl, right_ocl, disp_ocl);
Do you see any misstakes in my sample code?
I would be happy if i get your great code running on my GPU : )
I would like to first thanks bitwangyaoyao due to sharing this code. OpenCV is definitely needing OpenCL support and any effort like this is undoubtedly welcome!
I have just started messing around with bitwangyaoyao’s OpenCV-OpenCL svn branch and since I have not found any sample code, I decided to give a try at Horego’s code.
I wasn’t expecting this, but the code just worked fine without any kind of modification. I have tested with 2 images (Teddy/img2 and Teddy/img6 from http://cat.middlebury.edu/stereo/newdata.html). No pre-processing on the images was done.
The test machine is the following:
Ubuntu 11.04 x64
Kernel 2.6.39-02063902-generic
Driver: Catalyst 12.2 (x64)
APP SDK: AMD-APP-SDK-v2.6-lnx64.tgz
CPU: Core i5-2400S
GPU: ATI Radeon HD6750M
I think Horego’s system is very similar to mine. Maybe he should try to test using the same images that I referenced.
Thanks vlab & Horego’s trying. As it is still under developement, some bugs need fix. But it’s growing fast recently, and the code now is moved with OpenCV repository to Git. (git://code.opencv.org/opencv.git)
For the StereoBM, i’m afraid there still have some problem to make it running. But most of other functions are working. We’ll try to fix the problems and add a sample about Stereo.