Ask Your Question
0

OpenCL implementation for feature detection and description algorithms

asked 2016-04-19 11:45:51 -0600

anagno gravatar image

Hi,

I was wondering which algorithms for feature detection and description have already an opencl implementation that can be used with the UMat class. Where can I find this kind of information?

With kind regards

Vasilis

edit retag flag offensive close merge delete

Comments

In source code It does not mean that other features does not use opencl.

LBerger gravatar imageLBerger ( 2016-04-19 13:03:13 -0600 )edit
1

Keep in mind you can use UMat even if there is no OpenCL version. It just operates on the CPU instead.

Tetragramm gravatar imageTetragramm ( 2016-04-19 20:25:01 -0600 )edit

@LBerger I am guessig that each algorithm that has an OpenCL impelemntation must have somewhere in the source code #ifdef HAVE_OPENCL. I am right ? @Tetragramm How can I be sure that the opencl implementation is being called and the algorithm is running on GPU and not on the CPU?

Thank you both in advance

anagno gravatar imageanagno ( 2016-04-20 02:30:43 -0600 )edit

@anagno basically if you use UMat and your OpenCV has been compiled with OpenCL support AND your system has an OpenCL GPU device, it will try to run it on the GPU device. If you do not want this you need to disable OpenCL explicitly.

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-20 04:16:23 -0600 )edit

Thank you everyone for your respones! I have already compiled opencv with opencl on. P.S.: How can choose a comment as a correct answer?

anagno gravatar imageanagno ( 2016-04-20 10:12:54 -0600 )edit

You ca't but I marked @LBerger his comment as an answer :P Go accept it!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-04-22 02:49:44 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-04-20 08:06:14 -0600

LBerger gravatar image

updated 2016-04-20 08:07:16 -0600

@anagno In opencv you will need to compile opencv with WITH_OPENCL on. Then you can activate in your program opencl using cv::ocl::setUseOpenCL ( bool flag )

You can read this post too

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-19 11:45:51 -0600

Seen: 744 times

Last updated: Apr 19 '16