keypoints and index numbers

asked 2015-03-21 13:48:16 -0500

antithing gravatar image

Hi! I am using cv::SimpleBlobDetector to track keypoints, and it works great. However, as I plan to pass these keypoints to a solvePnp function, I need their index numbers to stay the same.

eg:

When i first run the program, keypoint[0] tracks feature1, keypoint[1] tracks feature2.

I am looking for a way to ensure that, no matter what, keypoint[0] ALWAYS corresponds to feature1, and so on.

Is this possible? or when features are found/lost, will it reshuffle the index?

many thanks!

edit retag flag offensive close merge delete

Comments

basically, I just need to run solvePnp with a grid of dots, instead of a chessboard. sounds easy, but is making me tear out my hair...

antithing gravatar imageantithing ( 2015-03-21 14:17:04 -0500 )edit

... and if i do it with optical flow, which seems smart, what is the best way to make sure the right feature corresponds with the right object point?

antithing gravatar imageantithing ( 2015-03-21 17:50:31 -0500 )edit