"Save" ORB descriptors who get matched

asked 2017-03-07 10:44:38 -0600

Hi, I'm pretty new to CV.

I want to match img1 and img2 based on ORB descriptors, and RANSAC to select the best matches. This part is okey.

Then I want to match img2 and img3, but ONLY with the descriptors in img2 who got a match with img1. Then I want to match img3 and img4, but ONLY with the descriptors in img3 who got a match with img2. Then I want to match img4 and img5, but ONLY with the descriptors in img4 who got a match with img3. And so on (it's a video file, and imgX = frameX).

So, is there a way to sort out the descriptors who got a match with the other image?

The main goal is to track the descriptors.

edit retag flag offensive close merge delete

Comments

what are you trying to achieve with the matching ?

berak gravatar imageberak ( 2017-03-07 10:47:51 -0600 )edit
1

I want to track the motion of the descriptors. The video is from a driving car (mobile mapping project), and I want to calculate the distance that the car has travelled. To do this I have set up a normal equation system for relative orientation, and in this normal equation system I need all the keypoints/descriptors and in which frames these keypoints/descriptors can be found. This is a 1 sec step (25 frames).

kimwillem gravatar imagekimwillem ( 2017-03-07 11:00:30 -0600 )edit

I think I might be on to something now. The DMatch function seems to return an array/list of which descriptors got matched. So from there I should be able to only use the descriptors with a match. Or am I completely wrong?

kimwillem gravatar imagekimwillem ( 2017-03-07 11:26:38 -0600 )edit