Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Can you post some code? A CPU implementation can be found in the samples/cpp folder called matcher_simple.cpp. Are you able to run that? I also have run the GPU version of SURF on OpenCV with no problem using:</p> <pre><code>SURF_GPU surf(1000, 4, 2, false, 0.5); // detecting keypoints &amp; computing descriptors GpuMat keypoints1GPU, keypoints2GPU; GpuMat descriptors1GPU, descriptors2GPU; surf(img1, GpuMat(), keypoints1GPU, descriptors1GPU); surf(img2, GpuMat(), keypoints2GPU, descriptors2GPU); cout &lt;&lt; "FOUND " &lt;&lt; keypoints1GPU.cols &lt;&lt; " keypoints on first image" &lt;&lt; endl; cout &lt;&lt; "FOUND " &lt;&lt; keypoints2GPU.cols &lt;&lt; " keypoints on second image" &lt;&lt; endl; // matching descriptors BruteForceMatcher_GPU&lt; L2&lt;float&gt; &gt; matcher; GpuMat trainIdx, distance; matcher.matchSingle(descriptors1GPU, descriptors2GPU, trainIdx, distance); // downloading results vector&lt;KeyPoint&gt; keypoints1, keypoints2; vector&lt;float&gt; descriptors1, descriptors2; vector&lt;DMatch&gt; matches; surf.downloadKeypoints(keypoints1GPU, keypoints1); surf.downloadKeypoints(keypoints2GPU, keypoints2); surf.downloadDescriptors(descriptors1GPU, descriptors1); surf.downloadDescriptors(descriptors2GPU, descriptors2); BruteForceMatcher_GPU&lt; L2&lt;float&gt; &gt;::matchDownload(trainIdx, distance, matches); // drawing the results Mat img_matches, image1, image2; img1.download(image1); img2.download(image2); drawMatches(image1, keypoints1, image2, keypoints2, matches, img_matches); </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload