1 | initial version |
OpenCL is a much more limited environment. It allows (hardware allowing) a much higher degree of parallelism, but to do that, it restricts what can be done. Many of the things you take for granted simply don't exist in OpenCL. It is unlikely that many of the existing parallel for loops in OpenCV would even compile as OpenCL code.
OpenCV does provide a framework for using OpenCL, but it's far more complicated than just using parallel_for.