OpenCV supports OpenCL via Transparent API. It should be as easy as changing `cv::Mat` into `cv::UMat`. Investigate performance gain, and potential problems.