Is cuda::SURF_cuda faster than cv::xfeatures2d::SURF? [closed]

asked 2017-02-16 03:43:37 -0600

lovaj gravatar image

updated 2017-02-16 03:44:22 -0600

I'm trying to build opencv with CUDA support to compare cuda::SURF_CUDA with cv::xfeatures2d::SURF, but it's challenging.

However, suppose that I want to get SURF descriptors for an high performance, real time application. Yeah yeah, I know that FAST, or ORB are more suitable descriptors, but they're binaries and I need euclidean descriptors.

Anyway, the point is that I want to know which of these two implementations is faster given only one (query) image. I think it's important because someone told me that CUDA is reasonable to use only when a lot of images has to be processed, since the time to load them in the GPU memory becomes small compared to the time for computing descriptors, but I don't know if this is true.

Another reason because I post this is that I have only one NVIDIA GT755m, which is not an high-level GPU, and so my results could be not so good for this reason. On the other hand, I'm trying to improve the parallel section of cv::xfeatures2d::SURF (and test it on a Xeon Phi with 64 cores).

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-11-05 15:06:31.760917

Comments

if you have a 64 core machine, then skip the CUDA part. I did some tests in object detection, where my 32 core system easily beats a GPU with 1GB of onboard memory for processing... TBB for example will better divide your data then indeed crossing that CPU-GPU bottleneck each time.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-16 07:33:32 -0600 )edit

@StevenPuttemans thanks for your comment. Are you telling me that the plain cv::xfeatures2d::SURF using TBB beats cv::cuda::SURF_CUDA in your case?

lovaj gravatar imagelovaj ( 2017-02-16 11:33:02 -0600 )edit

Yes it does, but again it depends from function to function. There is a lot of internal optimizations around, just be sure to built OpenCV and activate it.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-02-17 03:16:03 -0600 )edit