Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

this time, it's not opencv's fault, hehe ;)

std::vector<std::vector<cv::DMatch>> matches;

this is a 2d vector, which is wrong, it should be a single one, like this:

std::vector<cv::DMatch> matches;

(so, in your current code, matches[i] is another vector<DMatch>, not the DMatch item itself [with the required distance member] )