Ask Your Question

Revision history [back]

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.