使用 OpenCV 和 OpenCL 的容器类型

Container type with OpenCV and OpenCL

我想在某些 cv::UMat 上调用 cv::findCountours(已激活 OpenCL)并将结果输入 std::vector<std::vector<cv::Point>>

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

即使我正在使用 std::vector,OpenCV 是否仍然能够使用 OpenCL 对其进行优化?使用像 cv::UMat 这样的特殊容器作为容器(不是图像)有什么好处吗?

通过跟踪 OpenCV cv::findContours 函数,我意识到它根本没有使用 OpenCL 进行优化(也不是 CUDA)。据我在 OpenCV 3.1

中所见,它唯一的实现是 SSE2