Ask Your Question
2

OpenCV ocl support for odroid board

asked 2014-11-21 13:49:13 -0600

user10001 gravatar image

I have an embedded board which uses Mali-T628 MP6 GPU which is OpenCL 1.1 compatible. Can I run OpenCV V 3.0 which has transparent OCL module on this board?

If yes, how can I do this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2015-04-01 10:50:21 -0600

Yes. Mali-T628 has support for OpenCL 1.1 with Full Profile, which is exactly what OpenCV needs.

1 - You'll have to build OpenCV with the WITH_OPENCL flag active (which it should be by default).

2 - In your OpenCV project you'll have to add the library libopencv_ocl

3 - include the following path.

#include <opencv2/core/ocl.hpp>

4 - Replace cv::Mat objects for cv::UMat.

5 - Turn on and off OpenCL by changing the input argument of the following function

cv::ocl::setUseOpenCL(trueOrFalse);

Now, OpenCV is supposed to call OCL methods instead of the CPU if it finds an advantage, although this is not what I'm experiencing at all at the moment.

If you try this, please report results because I'm testing this board for opencv/opencl support aswell.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-21 13:49:13 -0600

Seen: 625 times

Last updated: Apr 01 '15