I use the following code for feature detection:
auto detector = cv::xfeatures2d::SURF::create();
std::vector<cv::KeyPoint> keypoints;
for (const cv::Mat& image : images) {
detector->detect(image, keypoints);
process(keypoints);
}
Now I try to use OpenCL version of SURF. I modified my code to work with cv::UMat
. Unfortunately, execution time does not change. HAS_OPENCL
is set, cv::ocl::useOpenCL()
is true. What could go wrong?