Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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!