Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I don't think it's possible. Perhaps in the very simplest cases, but even then...

Both the Mat structure and almost every OpenCV function use parts of the language that are either not supported by OpenCL, or bad ideas from a performance standpoint. For example, the arithmetic functions call SSE and AVX code that would horribly break if you tried to use it on OpenCL devices.

If it were possible, it would be enough work you it would probably be easier to just write your own OpenCL kernels, then contribute them back so others can benefit too.