keypoints and index numbers
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!
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...
... 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?