Ask Your Question

Revision history [back]

MatOfDMatch.toArray gives you the index of points for each image (train and query) to MatOfKeypoints if I'm right.

Transform your MatOfKeypoints to an array of Keypoints (with toArray), and iterate through the Point of keypoints (.pt), according to MatOfDMatch indices, and draw rectangle/circle or whatever you want with pt.x and pt.x coordinates.