Humam Helfawi Humam Helfawi - 1 year ago 151
C++ Question

Container type with OpenCV and OpenCL

I want to call

on some
(OpenCL activated) and get the results into

std::vector<std::vector<cv::Point>> contours;
cv::findContours(frame_umat, contours, cv::RETR_LIST, cv::ContourApproximationModes::CHAIN_APPROX_SIMPLE);

Will OpenCV still able to optimise it using OpenCL even if I am using
? Is there any advantage of using a special container like for example
as a container(not an image)?

Answer Source

By tracing OpenCV cv::findContours function, I realized that it is not optimised using OpenCL at all (not CUDA also). The only implementation it has is SSE2 as far as I found in OpenCV 3.1

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download