Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The problem is in drawMatches call.

You match descriptors_test_GPU -> descriptors_tmp_GPU:

matcher.knnMatch(descriptors_test_GPU, descriptors_tmp_GPU, matches, 2);

But call drawMatches with keypoints_tmp_CPU -> keypoints_test_CPU:

 drawMatches(img, keypoints_tmp_CPU, frame_cpu, keypoints_test_CPU, ...);

Swap parameters in drawMatches call:

 drawMatches(frame_cpu, keypoints_test_CPU, img, keypoints_tmp_CPU, ...);